// Fix #PSFV-20
This commit is contained in:
+3
-3
@@ -617,14 +617,14 @@ class ShopCore extends ObjectModel
|
|||||||
if ($type == 'group_shop')
|
if ($type == 'group_shop')
|
||||||
{
|
{
|
||||||
if ($shopID)
|
if ($shopID)
|
||||||
$restriction = ' AND '.$alias.'id_group_shop = '.Shop::getGroupFromShop($shopID);
|
$restriction = ' AND '.$alias.'id_group_shop = '.Shop::getGroupFromShop($shopID).' ';
|
||||||
else if ($shopGroupID)
|
else if ($shopGroupID)
|
||||||
$restriction = ' AND '.$alias.'id_group_shop = '.$shopGroupID;
|
$restriction = ' AND '.$alias.'id_group_shop = '.$shopGroupID.' ';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if ($shopID || $shopGroupID)
|
if ($shopID || $shopGroupID)
|
||||||
$restriction = ' AND '.$alias.'id_shop IN ('.implode(', ', $this->getListOfID($share)).')';
|
$restriction = ' AND '.$alias.'id_shop IN ('.implode(', ', $this->getListOfID($share)).') ';
|
||||||
}
|
}
|
||||||
|
|
||||||
return $restriction;
|
return $restriction;
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ class SEKeywords extends ModuleGraph
|
|||||||
FROM `'._DB_PREFIX_.'sekeyword`
|
FROM `'._DB_PREFIX_.'sekeyword`
|
||||||
WHERE '.(Configuration::get('SEK_FILTER_KW') == '' ? '1' : '`keyword` REGEXP \''.pSQL(Configuration::get('SEK_FILTER_KW')).'\'')
|
WHERE '.(Configuration::get('SEK_FILTER_KW') == '' ? '1' : '`keyword` REGEXP \''.pSQL(Configuration::get('SEK_FILTER_KW')).'\'')
|
||||||
.$this->sqlShopRestriction().
|
.$this->sqlShopRestriction().
|
||||||
'AND `date_add` BETWEEN ';
|
' AND `date_add` BETWEEN ';
|
||||||
|
|
||||||
$this->_query2 = 'GROUP BY TRIM(`keyword`)
|
$this->_query2 = 'GROUP BY TRIM(`keyword`)
|
||||||
HAVING occurences > '.(int)Configuration::get('SEK_MIN_OCCURENCES').'
|
HAVING occurences > '.(int)Configuration::get('SEK_MIN_OCCURENCES').'
|
||||||
|
|||||||
Reference in New Issue
Block a user