phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] CVS: phpgwapi/inc class.preferences.inc.php,1.43.2.2


From: Ralf Becker <address@hidden>
Subject: [Phpgroupware-cvs] CVS: phpgwapi/inc class.preferences.inc.php,1.43.2.2.2.1,1.43.2.2.2.2
Date: Thu, 01 May 2003 03:51:32 -0400

Update of /cvsroot/phpgroupware/phpgwapi/inc
In directory subversions:/tmp/cvs-serv28089

Modified Files:
      Tag: Version-0_9_16-branch
        class.preferences.inc.php 
Log Message:
changed check for not-set pref from empty() to ==='', as empty('0') === true, 
which means prefs set to No (='0') are overwritten by the default

Index: class.preferences.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/inc/class.preferences.inc.php,v
retrieving revision 1.43.2.2.2.1
retrieving revision 1.43.2.2.2.2
diff -C2 -r1.43.2.2.2.1 -r1.43.2.2.2.2
*** class.preferences.inc.php   29 Apr 2003 23:49:44 -0000      1.43.2.2.2.1
--- class.preferences.inc.php   1 May 2003 07:51:30 -0000       1.43.2.2.2.2
***************
*** 157,161 ****
                                foreach($values as $var => $value)
                                {
!                                       if (!isset($this->data[$app][$var]) || 
empty($this->data[$app][$var]))
                                        {
                                                $this->data[$app][$var] = 
$value;
--- 157,161 ----
                                foreach($values as $var => $value)
                                {
!                                       if (!isset($this->data[$app][$var]) || 
$this->data[$app][$var] === '')
                                        {
                                                $this->data[$app][$var] = 
$value;





reply via email to

[Prev in Thread] Current Thread [Next in Thread]