phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] property/inc class.sogab.inc.php,1.16,1.17


From: Sigurd Nes <address@hidden>
Subject: [Phpgroupware-cvs] property/inc class.sogab.inc.php,1.16,1.17
Date: Tue, 30 Sep 2003 17:31:28 +0000

Update of /cvsroot/phpgroupware/property/inc
In directory subversions:/tmp/cvs-serv12312/inc

Modified Files:
        class.sogab.inc.php 
Log Message:
no message

Index: class.sogab.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/property/inc/class.sogab.inc.php,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** class.sogab.inc.php 1 Sep 2003 19:26:54 -0000       1.16
--- class.sogab.inc.php 30 Sep 2003 17:31:25 -0000      1.17
***************
*** 333,349 ****
                                $location = explode('-', 
$gab_insert[$i]['location_code']);
  
!                               for ($j=0;$j<count($location);$j++)
                                {
!                                               $cols_insert[] = 'loc' . ($j+1);
!                                               $vals_insert[] = $location[$j];
                                }
  
-                               unset($location);
- 
                                if($cols)
                                {
!                                       $cols   = "," . implode(",", 
$cols_insert);
!                                       $vals   = ",'" . implode("','", 
$vals_insert) . "'";
                                }
  
  
--- 333,353 ----
                                $location = explode('-', 
$gab_insert[$i]['location_code']);
  
!                               while (is_array($location) && 
list($input_name,$value) = each($location))
                                {
!                                       if($value)
!                                       {
!                                               $cols[] = 'loc' . 
($input_name+1);
!                                               $vals[] = $value;
!                                       }
                                }
  
                                if($cols)
                                {
!                                       $cols   = "," . implode(",", $cols);
!                                       $vals   = ",'" . implode("','", $vals) 
. "'";
                                }
+ 
+                               unset($location);
+ 
  
  





reply via email to

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