// Warning is now displayed for shop without url

This commit is contained in:
rGaillard
2011-11-23 11:11:45 +00:00
parent 198a19211c
commit 44dd534693
2 changed files with 25 additions and 2 deletions
+11 -1
View File
@@ -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;
}
}