aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2013-04-19 21:18:11 -0400
committercash <cash.costello@gmail.com>2013-04-19 21:18:11 -0400
commit49ee96be289ce087462edf70a021f38ae87761a8 (patch)
treed25d60c8f540e821cae679320b01721916f25c7f /engine
parent863d45bb76d5bce2dabe32acc6f7d1f5400d568d (diff)
downloadelgg-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.php4
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;
}