// fix AdminController::loadObject()
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9428 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user