]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
Bug fix: correct counting result for history page
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>
Thu, 13 Mar 2008 10:11:26 +0000 (10:11 +0000)
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>
Thu, 13 Mar 2008 10:11:26 +0000 (10:11 +0000)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@78 b3834d28-1941-0410-a4f8-b48e95affb8f

services/bookmarkservice.php

index b5ce4521721e4f5bd825768662b111b3f78d62ec..54c2773ef31e3376bbeb3081f3aa9c4fa3ed5d9f 100644 (file)
@@ -370,7 +370,11 @@ class BookmarkService {
         if (SQL_LAYER == 'mysql4') {
             $totalquery = 'SELECT FOUND_ROWS() AS total';
         } else {
-            $totalquery = 'SELECT COUNT(DISTINCT bAddress) AS total'. $query_2 . $query_3 . $query_4;
+           if ($hash) {
+                $totalquery = 'SELECT COUNT(*) AS total'. $query_2 . $query_3 . $query_4;
+           } else {
+               $totalquery = 'SELECT COUNT(DISTINCT bAddress) AS total'. $query_2 . $query_3 . $query_4;
+           }
         }
 
         if (!($totalresult = & $this->db->sql_query($totalquery)) || (!($row = & $this->db->sql_fetchrow($totalresult)))) {