fix countBookmarks() for mysqli

git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@640 b3834d28-1941-0410-a4f8-b48e95affb8f
This commit is contained in:
cweiske 2010-02-07 16:53:22 +00:00
parent 3d135f47e9
commit 980181fef0

View 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':