Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Empty array fallback for YAML

  • Loading branch information...
commit d6bd14642c7ba2cb0ccfccf125ef740073c63ce3 1 parent 45bca06
@kolber authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  app/page-data.inc.php
View
2  app/page-data.inc.php
@@ -193,6 +193,8 @@ static function get_shared_data() {
$shared_file_path = file_exists(Config::$content_folder.'/_shared.yml') ? Config::$content_folder.'/_shared.yml' : Config::$content_folder.'/_shared.txt';
if (file_exists($shared_file_path)) {
return self::$shared = sfYaml::load($shared_file_path);
+ } else {
+ return array();
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.