From: cweiske Date: Sun, 7 Feb 2010 16:53:22 +0000 (+0000) Subject: fix countBookmarks() for mysqli X-Git-Tag: v0.97~71 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=980181fef05bcddaac94bc480c60ea623a4762e0;p=semanticscuttle.git fix countBookmarks() for mysqli git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@640 b3834d28-1941-0410-a4f8-b48e95affb8f --- diff --git a/src/SemanticScuttle/Service/Bookmark.php b/src/SemanticScuttle/Service/Bookmark.php index 81752c2..0ac1855 100644 --- a/src/SemanticScuttle/Service/Bookmark.php +++ b/src/SemanticScuttle/Service/Bookmark.php @@ -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':