Skip to content

Commit

Permalink
Removed a ternary shortcut (to support PHP5.3)
Browse files Browse the repository at this point in the history
  • Loading branch information
kolber committed Mar 18, 2012
1 parent ab7e081 commit 0992a79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/page-data.inc.php
Expand Up @@ -195,7 +195,7 @@ static function create_textfile_vars($page) {
$shared_file_path = file_exists('./content/_shared.yml') ? './content/_shared.yml' : './content/_shared.txt';
if (file_exists($shared_file_path)) {
if ($shared_vars = sfYaml::load($shared_file_path)) {
$vars = array_merge($shared_vars, $vars ?: array());
$vars = array_merge($shared_vars, $vars ? $vars : array());
}
}
if (empty($vars)) {
Expand Down

0 comments on commit 0992a79

Please sign in to comment.