// Add a lock on install process steps to be sure that a process can't be called if the first one isn't finished

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12916 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2012-02-02 09:31:18 +00:00
parent be9e1c1ec1
commit 4772fad3a3
3 changed files with 42 additions and 25 deletions
+9 -2
View File
@@ -45,9 +45,16 @@ class InstallSession
session_start();
}
public function __get($varname)
public function &__get($varname)
{
return isset($_SESSION[$varname]) ? $_SESSION[$varname] : null;
if (isset($_SESSION[$varname]))
$ref = &$_SESSION[$varname];
else
{
$null = null;
$ref = &$null;
}
return $ref;
}
public function __set($varname, $value)