Author: sevein
Date: Mon Apr 30 14:05:18 2012
New Revision: 11568

Log:
Make sure that we pass an integer

Modified:
   branches/2.0/apps/qubit/modules/search/actions/indexAction.class.php

Modified: branches/2.0/apps/qubit/modules/search/actions/indexAction.class.php
==============================================================================
--- branches/2.0/apps/qubit/modules/search/actions/indexAction.class.php        
Mon Apr 30 14:02:48 2012        (r11567)
+++ branches/2.0/apps/qubit/modules/search/actions/indexAction.class.php        
Mon Apr 30 14:05:18 2012        (r11568)
@@ -69,7 +69,7 @@
       $query->setFrom(($this->request->page - 1) * $this->request->limit);
     }
 
-    if (isset($this->request->realm))
+    if (isset($this->request->realm) && is_int($this->request->realm))
     {
       $query->setQuery(new Elastica_Query_Term(array('repository._id' => 
$this->request->realm)));
     }

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