// Fix bug on static property call on dynamic class (don't work on php < 5.3)
This commit is contained in:
1 parent
52be7fe939
commit
b0531b1f19
1 file changed
+2
-1
@@ -683,7 +683,8 @@ abstract class ObjectModelCore
|
|||||||
{
|
{
|
||||||
$multi_shop_join = ' LEFT JOIN `'._DB_PREFIX_.$this->table.'_'.$assoc[$this->table]['type'].'` AS multi_shop_'.$this->table.' ON (main.'.$this->identifier.' = '.'multi_shop_'.$this->table.'.'.$this->identifier.')';
|
$multi_shop_join = ' LEFT JOIN `'._DB_PREFIX_.$this->table.'_'.$assoc[$this->table]['type'].'` AS multi_shop_'.$this->table.' ON (main.'.$this->identifier.' = '.'multi_shop_'.$this->table.'.'.$this->identifier.')';
|
||||||
$class_name = WebserviceRequest::$ws_current_classname;
|
$class_name = WebserviceRequest::$ws_current_classname;
|
||||||
foreach ($class_name::$shopIDs as $id_shop)
|
$vars = get_class_vars($classname);
|
||||||
|
foreach ($vars['shopIDs'] as $id_shop)
|
||||||
$OR[] = ' multi_shop_'.$this->table.'.id_shop = '.$id_shop.' ';
|
$OR[] = ' multi_shop_'.$this->table.'.id_shop = '.$id_shop.' ';
|
||||||
$multi_shop_filter = ' AND ('.implode('OR', $OR).') ';
|
$multi_shop_filter = ' AND ('.implode('OR', $OR).') ';
|
||||||
$sql_filter = $multi_shop_filter.' '.$sql_filter;
|
$sql_filter = $multi_shop_filter.' '.$sql_filter;
|
||||||
|
|||||||
Reference in new issue
Block a user