1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 12:48:24 +01:00

Fixes #2803 - Plugin prefs with a value of '0' were not stored correctly.

This commit is contained in:
Cameron 2017-10-03 14:29:28 -07:00
parent 39ef6aecab
commit c6c6467a59
2 changed files with 6 additions and 1 deletions

View File

@ -3434,10 +3434,14 @@ class e107plugin
$config = ($mode == 'core') ? e107::getConfig('core') : e107::getPlugConfig($mode);
foreach ($prefArray['pref'] as $tag)
{
$key = varset($tag['@attributes']['name']);
$value = vartrue($tag['@value']);
$value = varset($tag['@value']);
// $this->log("  Pref: ".$key." => ".$value);
if(substr($value,0,5) == "e_UC_") // Convert Userclass constants.
{

View File

@ -22,6 +22,7 @@
<pluginPrefs>
<pref name="blank_pref_1">1</pref>
<pref name="blank_pref_2">[more...]</pref>
<pref name="blank_pref_3">0</pref>
</pluginPrefs>
<userClasses>
<class name="blank_userclass" description="Blank Userclass Description" />