phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] CVS: email/inc class.bopreferences.inc.php,1.11,1.12


From: Angelo Tony Puglisi <address@hidden>
Subject: [Phpgroupware-cvs] CVS: email/inc class.bopreferences.inc.php,1.11,1.12
Date: Thu, 17 Jan 2002 12:48:50 -0500

Update of /cvsroot/phpgroupware//email/inc
In directory subversions:/tmp/cvs-serv17144/email/inc

Modified Files:
        class.bopreferences.inc.php 
Log Message:
fix ksort-ing of extra accounts array in  prefs

Index: class.bopreferences.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware//email/inc/class.bopreferences.inc.php,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -r1.11 -r1.12
*** class.bopreferences.inc.php 16 Jan 2002 11:53:18 -0000      1.11
--- class.bopreferences.inc.php 17 Jan 2002 17:48:47 -0000      1.12
***************
*** 1199,1202 ****
--- 1199,1204 ----
                                        if ($this->debug_set_prefs > 1) { echo 
'email: bopreferences: process_ex_accounts_submitted_prefs: using 
preferences->add_struct("email", $pref_struct_str, $processed_pref) which will 
eval $pref_struct_str='.$pref_struct_str.'<br>'; }
                                        
$GLOBALS['phpgw']->preferences->add_struct('email', $pref_struct_str, 
$processed_pref);
+                                       // TEST: sort that array, by key, so 
the integer array heys go from lowest to hightest
+                                       
ksort($GLOBALS['phpgw']->preferences->data['email']['ex_accounts']);
                                }
                        }
***************
*** 1343,1347 ****
                                
                                if ($this->debug_set_prefs > 1) { echo 'email: 
bopreferences.ex_accounts_edit: $GLOBALS[phpgw]->preferences->data dump<pre>'; 
print_r($GLOBALS['phpgw']->preferences->data); echo '</pre>'; }
!                               
@reset($GLOBALS['phpgw']->preferences->prefs['ex_accounts']);
                        }
                                
--- 1345,1353 ----
                                
                                if ($this->debug_set_prefs > 1) { echo 'email: 
bopreferences.ex_accounts_edit: $GLOBALS[phpgw]->preferences->data dump<pre>'; 
print_r($GLOBALS['phpgw']->preferences->data); echo '</pre>'; }
!                               // debug
!                               
//unset($GLOBALS['phpgw']->preferences->data['email']['ex_accounts'][0]);
!                               // make the array in ascending order
!                               
//sort($GLOBALS['phpgw']->preferences->data['email']['ex_accounts']);
!                               
//reset($GLOBALS['phpgw']->preferences->data['email']['ex_accounts']);
                        }
                                
***************
*** 1411,1414 ****
--- 1417,1421 ----
                                        if ($this->debug_set_prefs > 1) { echo 
'email.bopreferences.ex_accounts_list: 
$GLOBALS[phpgw]->msg->extra_accounts['.$i.'][status] != empty <br>'; }
                                        $next_pos = count($return_list);
+                                       //$next_pos = $this_acctnum - 1;
                                        $return_list[$next_pos]['acctnum'] = 
$this_acctnum;
                                        $return_list[$next_pos]['status'] = 
$this_status;




reply via email to

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