//small fix

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17767 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
vAugagneur
2012-10-04 15:29:59 +00:00
parent 4a8e705efa
commit 2e3b2cd56d

View File

@@ -112,7 +112,7 @@ class HookCore extends ObjectModel
public static function getIdByName($hook_name)
{
if (!Validate::isHookName($hook_name))
throw new PrestaShopException('Invalid hook name');
return false;
$cache_id = 'hook_idbyname_'.$hook_name;
if (!Cache::isStored($cache_id))