Skip to content

Commit

Permalink
Setup: allow not to fail when config is empty file. #80
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Oct 24, 2015
1 parent 53fb6fa commit 15f4b25
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/eventum/class.setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,12 @@ private static function loadConfigFile($path, &$migrate)
{
$eventum_setup_string = $eventum_setup = null;

// return empty array if the file is empty
// this is to help eventum installation wizard to proceed
if (!filesize($path)) {
return array();
}

// config array is supposed to be returned from that path
/** @noinspection PhpIncludeInspection */
$config = require $path;
Expand Down

0 comments on commit 15f4b25

Please sign in to comment.