From c2261cc7fc8ecc6cdd3d7c1c0fbec2bf2767b826 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Gaillard?= Date: Mon, 14 Jan 2013 14:12:14 +0100 Subject: [PATCH] // fix php warning --- classes/helper/HelperList.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/helper/HelperList.php b/classes/helper/HelperList.php index 142fd1214..c7d6ca626 100644 --- a/classes/helper/HelperList.php +++ b/classes/helper/HelperList.php @@ -530,7 +530,7 @@ class HelperListCore extends Helper if ($this->position_identifier && ($this->orderBy == 'position' && $this->orderWay != 'DESC')) $table_dnd = true; - $prefix = str_replace(array('admin', 'controller'), '', Tools::strtolower($this->controller_name)); + $prefix = isset($this->controller_name) ? str_replace(array('admin', 'controller'), '', Tools::strtolower($this->controller_name)) : ''; foreach ($this->fields_list as $key => $params) { if (!isset($params['type']))