phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] CVS: todo/inc class.so.inc.php,1.6,1.7


From: Mark A Peters <address@hidden>
Subject: [Phpgroupware-cvs] CVS: todo/inc class.so.inc.php,1.6,1.7
Date: Sat, 13 Apr 2002 23:41:57 -0400

Update of /cvsroot/phpgroupware/todo/inc
In directory subversions:/tmp/cvs-serv9999/todo/inc

Modified Files:
        class.so.inc.php 
Log Message:
Fix for mssql or ODBC support.

Index: class.so.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/todo/inc/class.so.inc.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** class.so.inc.php    13 Apr 2002 21:20:32 -0000      1.6
--- class.so.inc.php    14 Apr 2002 03:41:54 -0000      1.7
***************
*** 218,226 ****
                        if (!$values['parent'] || $values[parent] == 0)
                        {
!                               $this->db2->query("select max(todo_id) as max 
from phpgw_todo",__LINE__,__FILE__);
                                $this->db2->next_record();
  
!                               $this->db->query("update phpgw_todo set 
todo_id_main='" . $this->db2->f('max') . "' "
!                                                               . "where 
todo_id='" . $this->db2->f('max') . "'",__LINE__,__FILE__);
                        }
  
--- 218,227 ----
                        if (!$values['parent'] || $values[parent] == 0)
                        {
!                               $this->db2->query("select max(todo_id) from 
phpgw_todo",__LINE__,__FILE__);
                                $this->db2->next_record();
+                               $max = $this->db2->f(0);
  
!                               $this->db->query("update phpgw_todo set 
todo_id_main='" . $max . "' "
!                                                               . "where 
todo_id='" . $max . "'",__LINE__,__FILE__);
                        }
  




reply via email to

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