phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] phpgwapi/inc class.contacts_sql.inc.php


From: Sigurd Nes
Subject: [Phpgroupware-cvs] phpgwapi/inc class.contacts_sql.inc.php
Date: Tue, 19 Dec 2006 13:38:20 +0000

CVSROOT:        /sources/phpgwapi
Module name:    phpgwapi
Changes by:     Sigurd Nes <sigurdne>   06/12/19 13:38:20

Modified files:
        inc            : class.contacts_sql.inc.php 

Log message:
        fetchRow() is already moving the pointer

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/phpgwapi/inc/class.contacts_sql.inc.php?cvsroot=phpgwapi&r1=1.38&r2=1.39

Patches:
Index: class.contacts_sql.inc.php
===================================================================
RCS file: /sources/phpgwapi/phpgwapi/inc/class.contacts_sql.inc.php,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -b -r1.38 -r1.39
--- class.contacts_sql.inc.php  11 Dec 2006 15:15:19 -0000      1.38
+++ class.contacts_sql.inc.php  19 Dec 2006 13:38:20 -0000      1.39
@@ -6,7 +6,7 @@
        * @license http://www.gnu.org/licenses/gpl.html GNU General Public 
License
        * @package phpgwapi
        * @subpackage contacts
-       * @version $Id: class.contacts_sql.inc.php,v 1.38 2006/12/11 15:15:19 
sigurdne Exp $
+       * @version $Id: class.contacts_sql.inc.php,v 1.39 2006/12/19 13:38:20 
sigurdne Exp $
        * @internal Development of this application was funded by 
http://www.sogrp.com
        */
 
@@ -1139,10 +1139,18 @@
 
                        $this->total_records = $this->db->num_rows();
                        $persons = false;
-                       while ($this->db->next_record())
+
+               /*      while ($this->db->next_record())
+                       {
+                               $persons[] = $this->db->resultSet->fetchRow();
+                       }
+               */
+
+                       while (!$this->db->resultSet->EOF)
                        {
                                $persons[] = $this->db->resultSet->fetchRow();
                        }
+
                        return $persons;
                }
 




reply via email to

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