Skip to content

Commit

Permalink
Ignore empty ini sections
Browse files Browse the repository at this point in the history
  • Loading branch information
andresgutierrez committed May 26, 2015
1 parent 2405b6e commit ff96c25
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion phalcon/config/adapter/ini.zep
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ class Ini extends Config
for path, lastValue in directives {
let sections[] = this->_parseIniString(path, lastValue);
}
let config[section] = call_user_func_array("array_merge_recursive", sections);
if count(sections) {
let config[section] = call_user_func_array("array_merge_recursive", sections);
}
}

parent::__construct(config);
Expand Down

0 comments on commit ff96c25

Please sign in to comment.