Author: jablko
Date: Mon Nov  1 11:06:44 2010
New Revision: 8737

Log:
Suppress notice

Modified:
   trunk/lib/QubitQuery.class.php

Modified: trunk/lib/QubitQuery.class.php
==============================================================================
--- trunk/lib/QubitQuery.class.php      Mon Nov  1 10:59:02 2010        (r8736)
+++ trunk/lib/QubitQuery.class.php      Mon Nov  1 11:06:44 2010        (r8737)
@@ -59,7 +59,7 @@
   // Not recursive: Only ever called from the root.
   protected function getStatement(QubitQuery $leaf)
   {
-    // HACK: Tell the caller whether we sorted according to the leaf
+    // HACK Tell the caller whether we sorted according to the leaf
     $sorted = false;
 
     if (!isset($this->statement))
@@ -73,13 +73,13 @@
       $this->statement = BasePeer::doSelect($this->criteria);
     }
 
-    // TODO: Determine whether the sort order matches the previous sort order
+    // TODO Determine whether the sort order matches the previous sort order
     return array($this->statement, $sorted);
   }
 
   protected function getObjects(QubitQuery $leaf)
   {
-    // HACK: Tell the caller whether we sorted according to the leaf
+    // HACK Tell the caller whether we sorted according to the leaf
     $sorted = false;
 
     if (!isset($this->objects))
@@ -114,7 +114,7 @@
             // $this->parent is unset, so we should have a className?
             $object = call_user_func(array($this->className, 'getFromRow'), 
$row);
 
-            // TODO: $this->parent is unset, so we probably do not have
+            // TODO $this->parent is unset, so we probably do not have
             // $this->indexByName, but it would be nice to use the indexByName
             // of the leaf
             if (isset($this->indexByName))
@@ -186,6 +186,11 @@
   {
     if ('transient' === $name)
     {
+      if (!isset($this->objects))
+      {
+        return array();
+      }
+
       return $this->objects;
     }
 

-- 
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