Permalink
Browse files

Ensure $page_data[$file_name] exists

  • Loading branch information...
1 parent e4eeec7 commit 7f5105dbd391a1eca6f7929b59e8378652d93ec6 @kolber committed Apr 16, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/asset-types/asset-factory.inc.php
@@ -13,7 +13,7 @@ static function extract_page_data($asset_path) {
# return any page data scoped against the asset filename
$page_data = self::$store[$page_path];
- return $page_data[$file_name];
+ return isset($page_data[$file_name]) ? $page_data[$file_name] : array();
}
static function &create($file_path) {

0 comments on commit 7f5105d

Please sign in to comment.