aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/plugins.php12
1 files changed, 7 insertions, 5 deletions
diff --git a/engine/lib/plugins.php b/engine/lib/plugins.php
index be604606e..1e0a683c2 100644
--- a/engine/lib/plugins.php
+++ b/engine/lib/plugins.php
@@ -49,13 +49,15 @@ class ElggPlugin extends ElggObject {
}
// No, so see if its in the private data store.
+ // get_private_setting() returns false if it doesn't exist
$meta = get_private_setting($this->guid, $name);
- if ($meta) {
- return $meta;
- }
- // Can't find it, so return null
- return null;
+ if ($meta === false) {
+ // Can't find it, so return null
+ return NULL;
+ }
+
+ return $meta;
}
/**