aboutsummaryrefslogtreecommitdiff
path: root/src/SemanticScuttle/Service
diff options
context:
space:
mode:
authorcweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2010-02-07 16:53:22 +0000
committercweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2010-02-07 16:53:22 +0000
commit980181fef05bcddaac94bc480c60ea623a4762e0 (patch)
tree1af460082b6137897baab5b5ef41ae1f8e93c692 /src/SemanticScuttle/Service
parent3d135f47e954e6db437ac2fe9141b1f52e8ba40c (diff)
downloadsemanticscuttle-980181fef05bcddaac94bc480c60ea623a4762e0.tar.gz
semanticscuttle-980181fef05bcddaac94bc480c60ea623a4762e0.tar.bz2
fix countBookmarks() for mysqli
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@640 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'src/SemanticScuttle/Service')
-rw-r--r--src/SemanticScuttle/Service/Bookmark.php2
1 files changed, 1 insertions, 1 deletions
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':