diff options
author | cash <cash.costello@gmail.com> | 2013-04-19 21:18:11 -0400 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2013-04-19 21:18:11 -0400 |
commit | 49ee96be289ce087462edf70a021f38ae87761a8 (patch) | |
tree | d25d60c8f540e821cae679320b01721916f25c7f /engine | |
parent | 863d45bb76d5bce2dabe32acc6f7d1f5400d568d (diff) | |
download | elgg-49ee96be289ce087462edf70a021f38ae87761a8.tar.gz elgg-49ee96be289ce087462edf70a021f38ae87761a8.tar.bz2 |
Fixes #4530 not caching 0 as page owner
Diffstat (limited to 'engine')
-rw-r--r-- | engine/lib/pageowner.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engine/lib/pageowner.php b/engine/lib/pageowner.php index 7e8e6e430..bd63d08c6 100644 --- a/engine/lib/pageowner.php +++ b/engine/lib/pageowner.php @@ -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; } |