From 980181fef05bcddaac94bc480c60ea623a4762e0 Mon Sep 17 00:00:00 2001 From: cweiske Date: Sun, 7 Feb 2010 16:53:22 +0000 Subject: fix countBookmarks() for mysqli git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@640 b3834d28-1941-0410-a4f8-b48e95affb8f --- src/SemanticScuttle/Service/Bookmark.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/SemanticScuttle/Service') 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': -- cgit v1.2.3