aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
Diffstat (limited to 'engine')
-rw-r--r--engine/classes/ElggPlugin.php11
1 files changed, 4 insertions, 7 deletions
diff --git a/engine/classes/ElggPlugin.php b/engine/classes/ElggPlugin.php
index 81831d8cd..545b9a53c 100644
--- a/engine/classes/ElggPlugin.php
+++ b/engine/classes/ElggPlugin.php
@@ -300,13 +300,12 @@ class ElggPlugin extends ElggObject {
$private_settings = get_data($q);
$return = array();
-
+
if ($private_settings) {
-
foreach ($private_settings as $setting) {
$return[$setting->name] = $setting->value;
}
- }
+ }
return $return;
}
@@ -423,16 +422,14 @@ class ElggPlugin extends ElggObject {
$private_settings = get_data($q);
$return = array();
-
- if ($private_settings) {
-
+
+ if ($private_settings) {
foreach ($private_settings as $setting) {
$name = substr($setting->name, $ps_prefix_len);
$value = $setting->value;
$return[$name] = $value;
}
-
}
return $return;