summaryrefslogtreecommitdiff
path: root/src/SemanticScuttle/Service/Bookmark.php
diff options
context:
space:
mode:
authorcweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2010-02-07 16:51:31 +0000
committercweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2010-02-07 16:51:31 +0000
commit3d135f47e954e6db437ac2fe9141b1f52e8ba40c (patch)
treec1322554a7ffee7235326b894359830429133534 /src/SemanticScuttle/Service/Bookmark.php
parent3b656954e0ef123757032468d8dedd7184b9afa1 (diff)
downloadsemanticscuttle-3d135f47e954e6db437ac2fe9141b1f52e8ba40c.tar.gz
semanticscuttle-3d135f47e954e6db437ac2fe9141b1f52e8ba40c.tar.bz2
fix bookmarkExists() for mysqli
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@639 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'src/SemanticScuttle/Service/Bookmark.php')
-rw-r--r--src/SemanticScuttle/Service/Bookmark.php12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/SemanticScuttle/Service/Bookmark.php b/src/SemanticScuttle/Service/Bookmark.php
index cb53cb1..81752c2 100644
--- a/src/SemanticScuttle/Service/Bookmark.php
+++ b/src/SemanticScuttle/Service/Bookmark.php
@@ -322,11 +322,15 @@ class SemanticScuttle_Service_Bookmark extends SemanticScuttle_DbService
$crit['uId'] = $uid;
}
- $sql = 'SELECT COUNT(*) FROM '. $GLOBALS['tableprefix'] .'bookmarks WHERE '. $this->db->sql_build_array('SELECT', $crit);
- if (!($dbresult = & $this->db->sql_query($sql))) {
- message_die(GENERAL_ERROR, 'Could not get vars', '', __LINE__, __FILE__, $sql, $this->db);
+ $sql = 'SELECT COUNT(*) as "0" FROM '. $GLOBALS['tableprefix'] .'bookmarks WHERE '. $this->db->sql_build_array('SELECT', $crit);
+
+ if (!($dbresult = $this->db->sql_query($sql))) {
+ message_die(
+ GENERAL_ERROR, 'Could not get vars', '',
+ __LINE__, __FILE__, $sql, $this->db
+ );
}
- if($this->db->sql_fetchfield(0, 0) > 0) {
+ if ($this->db->sql_fetchfield(0, 0) > 0) {
$output = true;
} else {
$output = false;