// fix AdminController::loadObject()

This commit is contained in:
tDidierjean committed 2011-10-18 15:22:45 +00:00
1 parent 47d3af17f8
commit 13f39b3bb3
1 file changed
+2 -1
+2 -1
View File
@@ -697,7 +697,8 @@ class AdminControllerCore extends Controller
*/ */
protected function loadObject($opt = false) protected function loadObject($opt = false)
{ {
if ($id = (int)Tools::getValue($this->identifier) && Validate::isUnsignedId($id)) $id = (int)Tools::getValue($this->identifier);
if ($id && Validate::isUnsignedId($id))
{ {
if (!$this->_object) if (!$this->_object)
$this->_object = new $this->className($id); $this->_object = new $this->className($id);