]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
fix countBookmarks() for mysqli
authorcweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>
Sun, 7 Feb 2010 16:53:22 +0000 (16:53 +0000)
committercweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>
Sun, 7 Feb 2010 16:53:22 +0000 (16:53 +0000)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@640 b3834d28-1941-0410-a4f8-b48e95affb8f

src/SemanticScuttle/Service/Bookmark.php

index 81752c23079981e3b87fac39685741c62e3faa29..0ac18555b7fedb7ea337cfc500e465de551358ee 100644 (file)
@@ -228,7 +228,7 @@ class SemanticScuttle_Service_Bookmark extends SemanticScuttle_DbService
      */
     public function countBookmarks($uId, $range = 'public')
     {
-        $sql = 'SELECT COUNT(*) FROM '. $this->getTableName();
+        $sql = 'SELECT COUNT(*) as "0" FROM '. $this->getTableName();
         $sql.= ' WHERE uId = ' . intval($uId);
         switch ($range) {
         case 'all':