[-] Core : you must always have an id_shop in a SQL query, not null
This commit is contained in:
@@ -943,7 +943,7 @@ class ShopCore extends ObjectModel
|
||||
public static function addSqlRestrictionOnLang($alias = null, $id_shop = null)
|
||||
{
|
||||
if (is_null($id_shop))
|
||||
$id_shop = Context::getContext()->shop->id;
|
||||
$id_shop = Shop::getContextShopID();
|
||||
return ' AND '.(($alias) ? $alias.'.' : '').'id_shop = '.$id_shop.' ';
|
||||
}
|
||||
|
||||
|
||||
@@ -82,7 +82,7 @@ class Loyalty extends Module
|
||||
Configuration::updateValue('PS_LOYALTY_VOUCHER_DETAILS', $conf);
|
||||
|
||||
$category_config = '';
|
||||
$categories = Category::getSimpleCategories((int)(Configuration::get('PS_LANG_DEFAULT')));
|
||||
$categories = Category::getSimpleCategories((int)Configuration::get('PS_LANG_DEFAULT'));
|
||||
foreach ($categories as $category)
|
||||
$category_config .= (int)$category['id_category'].',';
|
||||
$category_config = rtrim($category_config, ',');
|
||||
|
||||
Reference in New Issue
Block a user