Skip to content

Commit

Permalink
Merge pull request #10995 from jdalsem/setting-arrays
Browse files Browse the repository at this point in the history
chore(plugins): return false if usersetting value is an array
  • Loading branch information
jdalsem committed Jul 21, 2017
2 parents aeeb8f2 + b1fa2c1 commit 823df94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/classes/ElggPlugin.php
Expand Up @@ -543,7 +543,7 @@ public function setUserSetting($name, $value, $user_guid = 0) {

if (is_array($value)) {
elgg_log('Plugin user settings cannot store arrays.', 'ERROR');
$result = false;
return false;
}

// set the namespaced name.
Expand Down

0 comments on commit 823df94

Please sign in to comment.