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:
parent
39ef6aecab
commit
c6c6467a59
@ -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.
|
||||
{
|
||||
|
@ -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" />
|
||||
|
Loading…
x
Reference in New Issue
Block a user