summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2010-06-11 15:54:08 -0700
committerTim Almdal <tnalmdal@shaw.ca>2010-06-11 15:54:08 -0700
commit41c18929cd23cf142df75ec9f9666102c593fcae (patch)
treef337d79809bcbf0f803b27fb6a22ae1a69aae5ba
parent4c6045843ddbb98d1ccbf4a803fa4c45f062c391 (diff)
Remove the duplicate query when searching as pointed out by joe7 on ticket #844
-rw-r--r--modules/search/helpers/search.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/search/helpers/search.php b/modules/search/helpers/search.php
index 22f83218..24c4ed2b 100644
--- a/modules/search/helpers/search.php
+++ b/modules/search/helpers/search.php
@@ -42,7 +42,7 @@ class search_Core {
$data = $db->query($query);
$count = $db->query("SELECT FOUND_ROWS() as c")->current()->c;
- return array($count, new ORM_Iterator(ORM::factory("item"), $db->query($query)));
+ return array($count, new ORM_Iterator(ORM::factory("item"), $data));
}
/**