added v2 of cpeprov
This commit is contained in:
@@ -141,7 +141,7 @@ class OrderProductModel
|
||||
return $items;
|
||||
}
|
||||
|
||||
public static function precache()
|
||||
public static function precache($where = false): array
|
||||
{
|
||||
$items = [];
|
||||
$db = FronkDB::singleton();
|
||||
@@ -162,7 +162,7 @@ class OrderProductModel
|
||||
";
|
||||
//mfLoghandler::singleton()->debug($sql);
|
||||
|
||||
$res = $db->query($sql);
|
||||
$res = $db->query($sql . ($where ? " WHERE $where" : ""));
|
||||
if ($db->num_rows($res)) {
|
||||
$oldProduct = "";
|
||||
$oldOrder = "";
|
||||
|
||||
Reference in New Issue
Block a user