]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #4530 not caching 0 as page owner
authorcash <cash.costello@gmail.com>
Sat, 20 Apr 2013 01:18:11 +0000 (21:18 -0400)
committercash <cash.costello@gmail.com>
Sat, 20 Apr 2013 01:18:11 +0000 (21:18 -0400)
engine/lib/pageowner.php

index 7e8e6e430082277c4d62b4c77fc9af5f7591e028..bd63d08c6cf49b076c4ecb6060790ce8079eebcc 100644 (file)
@@ -29,7 +29,9 @@ function elgg_get_page_owner_guid($guid = 0) {
        // return guid of page owner entity
        $guid = elgg_trigger_plugin_hook('page_owner', 'system', NULL, 0);
 
-       $page_owner_guid = $guid;
+       if ($guid) {
+               $page_owner_guid = $guid;
+       }
 
        return $guid;
 }