aboutsummaryrefslogtreecommitdiff
path: root/engine/classes
diff options
context:
space:
mode:
Diffstat (limited to 'engine/classes')
-rw-r--r--engine/classes/ElggPlugin.php21
1 files changed, 10 insertions, 11 deletions
diff --git a/engine/classes/ElggPlugin.php b/engine/classes/ElggPlugin.php
index 7bf6eb1df..81831d8cd 100644
--- a/engine/classes/ElggPlugin.php
+++ b/engine/classes/ElggPlugin.php
@@ -299,17 +299,16 @@ class ElggPlugin extends ElggObject {
$private_settings = get_data($q);
+ $return = array();
+
if ($private_settings) {
- $return = array();
-
+
foreach ($private_settings as $setting) {
$return[$setting->name] = $setting->value;
}
+ }
- return $return;
- }
-
- return false;
+ return $return;
}
/**
@@ -423,9 +422,10 @@ class ElggPlugin extends ElggObject {
$private_settings = get_data($q);
- if ($private_settings) {
- $return = array();
-
+ $return = array();
+
+ if ($private_settings) {
+
foreach ($private_settings as $setting) {
$name = substr($setting->name, $ps_prefix_len);
$value = $setting->value;
@@ -433,10 +433,9 @@ class ElggPlugin extends ElggObject {
$return[$name] = $value;
}
- return $return;
}
- return false;
+ return $return;
}
/**