Commit c686ad66 authored by skummer's avatar skummer

ZP-308 #comment users file is not an array so settings file was also created...

ZP-308 #comment users file is not an array so settings file was also created automatically when upgrading #time 30m


git-svn-id: https://z-push.org/svn/z-push/trunk@1638 b7dd7b3b-3a3c-0410-9da9-bee62a6cc5b5
parent bb78234b
......@@ -334,7 +334,7 @@ class FileStateMachine implements IStateMachine {
$settings = unserialize(file_get_contents($this->settingsfilename));
else {
$filecontents = @file_get_contents($this->userfilename);
if (is_array($filecontents))
if ($filecontents)
$settings = array(self::VERSION => IStateMachine::STATEVERSION_01);
else {
$settings = array(self::VERSION => self::SUPPORTED_STATE_VERSION);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment