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:
parent
3d135f47e9
commit
980181fef0
1 changed files with 1 additions and 1 deletions
|
@ -228,7 +228,7 @@ class SemanticScuttle_Service_Bookmark extends SemanticScuttle_DbService
|
||||||
*/
|
*/
|
||||||
public function countBookmarks($uId, $range = 'public')
|
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);
|
$sql.= ' WHERE uId = ' . intval($uId);
|
||||||
switch ($range) {
|
switch ($range) {
|
||||||
case 'all':
|
case 'all':
|
||||||
|
|
Loading…
Reference in a new issue