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

This commit is contained in:
rMalie
2012-02-02 09:31:18 +00:00
parent 7a36bc48d9
commit f6bc520425
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)