// Warning is now displayed for shop without url
This commit is contained in:
+11
-1
@@ -869,4 +869,14 @@ class ShopCore extends ObjectModel
|
||||
{
|
||||
return (int)Db::getInstance()->getValue(sprintf('SELECT COUNT(*) FROM`'._DB_PREFIX_.'group_shop` WHERE `id_group_shop` = %d', (int)$id));
|
||||
}
|
||||
}
|
||||
|
||||
public static function getShopWithoutUrls($id_shop = false)
|
||||
{
|
||||
$without = array();
|
||||
$shops = self::getShops();
|
||||
foreach ($shops as $shop)
|
||||
if ((!$id_shop || $shop['id_shop'] == $id_shop) && empty($shop['domain']) && empty($shop['uri']))
|
||||
$without[] = $shop;
|
||||
return $without;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user