Author: sevein
Date: Wed Mar  9 10:33:13 2011
New Revision: 9025

Log:
Use fetchAll() instead of fetch(), better than buffering. Fixes issue 1955.

Modified:
   trunk/apps/qubit/modules/term/actions/autocompleteAction.class.php

Modified: trunk/apps/qubit/modules/term/actions/autocompleteAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/term/actions/autocompleteAction.class.php  Wed Mar 
 9 00:02:53 2011        (r9024)
+++ trunk/apps/qubit/modules/term/actions/autocompleteAction.class.php  Wed Mar 
 9 10:33:13 2011        (r9025)
@@ -106,7 +106,8 @@
       $statement->execute();
 
       $this->terms = array();
-      while ($row = $statement->fetch())
+      $rows = $statement->fetchAll();
+      foreach ($rows as $row)
       {
         if (isset($row[1]))
         {

-- 
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/qubit-commits?hl=en.

Reply via email to