Bugfix: bookmark duplicate check on mysqli
authorTakuya Ono <takuya-o@users.sourceforge.net>
Mon, 5 Sep 2016 14:00:00 +0000 (23:00 +0900)
committerTakuya Ono <takuya-o@users.sourceforge.net>
Mon, 5 Sep 2016 14:00:00 +0000 (23:00 +0900)
There was a bug that the bookmarkExists() always return false by the mysqli driver.

includes/db/mysqli.php

index 267229f5b3b03dbcbb87889d2f2cd3a8bdf5548f..d2eaa9bab26a94a9556547088983767b0368fc8b 100644 (file)
@@ -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

Benjamin Mako Hill || Want to submit a patch?