phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] CVS: timetrack admin5.php,1.2,1.3


From: Bob Schader <address@hidden>
Subject: [Phpgroupware-cvs] CVS: timetrack admin5.php,1.2,1.3
Date: Thu, 25 Apr 2002 22:48:52 -0400

Update of /cvsroot/phpgroupware/timetrack
In directory subversions:/tmp/cvs-serv27077

Modified Files:
        admin5.php 
Log Message:
add skeeter fix from 0.9.14 branch

Index: admin5.php
===================================================================
RCS file: /cvsroot/phpgroupware/timetrack/admin5.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** admin5.php  18 Mar 2002 03:18:04 -0000      1.2
--- admin5.php  26 Apr 2002 02:48:44 -0000      1.3
***************
*** 157,161 ****
         // Check to see if $cname is already in the db before trying to add it
         $GLOBALS['phpgw']->db->query("SELECT company_name from 
phpgw_ttrack_customers "
!            . "WHERE company_name='$cname'");
         if($GLOBALS['phpgw']->db->num_rows() > 0)
         {
--- 157,161 ----
         // Check to see if $cname is already in the db before trying to add it
         $GLOBALS['phpgw']->db->query("SELECT company_name from 
phpgw_ttrack_customers "
!       . "WHERE 
company_name='".$GLOBALS['phpgw']->db->db_addslashes($cname)."'",__LINE__,__FILE__);
         if($GLOBALS['phpgw']->db->num_rows() > 0)
         {
***************
*** 164,168 ****
             $GLOBALS['phpgw']->db->query("INSERT into phpgw_ttrack_customers "
                 . "(company_name) "
!                . "VALUES ('$cname')");
             echo "$cname added to Customers List<br>";
         }
--- 164,168 ----
             $GLOBALS['phpgw']->db->query("INSERT into phpgw_ttrack_customers "
                 . "(company_name) "
!               "VALUES 
('".$GLOBALS['phpgw']->db->db_addslashes($cname)."')",__LINE__,__FILE__);
             echo "$cname added to Customers List<br>";
         }




reply via email to

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