// Fix bug on static property call on dynamic class (don't work on php < 5.3)

This commit is contained in:
rMalie
2011-07-08 15:20:16 +00:00
parent 52be7fe939
commit b0531b1f19
+2 -1
View File
@@ -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.')';
$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.' ';
$multi_shop_filter = ' AND ('.implode('OR', $OR).') ';
$sql_filter = $multi_shop_filter.' '.$sql_filter;