From: Takuya Ono Date: Mon, 5 Sep 2016 14:00:00 +0000 (+0900) Subject: Bugfix: bookmark duplicate check on mysqli X-Git-Url: https://projects.mako.cc/source/scuttle/commitdiff_plain/53ed2435e2c70b9ab7e76a2c21c444641bd97977?ds=inline Bugfix: bookmark duplicate check on mysqli There was a bug that the bookmarkExists() always return false by the mysqli driver. --- diff --git a/includes/db/mysqli.php b/includes/db/mysqli.php index 267229f..d2eaa9b 100644 --- a/includes/db/mysqli.php +++ b/includes/db/mysqli.php @@ -312,7 +312,7 @@ class sql_db if ($rownum > -1) { @mysqli_data_seek($query_id, $rownum); - $row = @mysqli_fetch_assoc($query_id); + $row = @mysqli_fetch_row($query_id); $result = isset($row[$field]) ? $row[$field] : false; } else