//small fix
This commit is contained in:
+1
-1
@@ -112,7 +112,7 @@ class HookCore extends ObjectModel
|
|||||||
public static function getIdByName($hook_name)
|
public static function getIdByName($hook_name)
|
||||||
{
|
{
|
||||||
if (!Validate::isHookName($hook_name))
|
if (!Validate::isHookName($hook_name))
|
||||||
throw new PrestaShopException('Invalid hook name');
|
return false;
|
||||||
|
|
||||||
$cache_id = 'hook_idbyname_'.$hook_name;
|
$cache_id = 'hook_idbyname_'.$hook_name;
|
||||||
if (!Cache::isStored($cache_id))
|
if (!Cache::isStored($cache_id))
|
||||||
|
|||||||
Reference in New Issue
Block a user