sql driver in turba

Jack Bertram jack@zft.co.uk
r


Hi all,

Noticed that the sql driver search function was only returning one row of
results and enclose a one-line patch.

Jack

--- cvs.horde.org.vanilla/horde/turba/lib/Driver/sql.php	Tue Dec  5
17:08:16 2000
+++ cvs.horde.org.working/horde/turba/lib/Driver/sql.php	Tue Dec 19 09:30:20
2000
@@ -64,17 +64,18 @@

         $results = array();
         if (isset($result)) {
-            $row = $result->fetchRow();
-            if (isset($row)) {
-                $entry = array();
-
-                for ($i = 0; $i < count($fields); $i++) {
-                    $field = $fields[$i];
-                    $entry[$field] = $row[$i];
-                }
-
-                $results[] = $entry;
-            }
+            while ($row = $result->fetchRow()) {
+
	    if (isset($row)) {
+
		$entry = array();
+
		
+
		for ($i = 0; $i < count($fields); $i++) {
+
		    $field = $fields[$i];
+
		    $entry[$field] = $row[$i];
+
		}
+
		
+
		$results[] = $entry;
+
	    }
+
	}
         }

         return $results;


----- End forwarded message -----