]> git.mjollnir.org Git - s9y.git/commitdiff
Fix some missing 'dbConn' variables, many thanks to Josef Moravek
authorgarvinhicking <garvinhicking>
Mon, 1 May 2006 12:01:21 +0000 (12:01 +0000)
committergarvinhicking <garvinhicking>
Mon, 1 May 2006 12:01:21 +0000 (12:01 +0000)
include/db/mysqli.inc.php

index 028a42fd96999e190ca91f52d9396460e9523a3d..653ed63adf6bb571be34ca94e4e09148a3658250 100644 (file)
@@ -151,7 +151,7 @@ function serendipity_db_updated_rows() {
 
     preg_match(
         "/^[^0-9]+([0-9]+)[^0-9]+([0-9]+)[^0-9]+([0-9]+)/",
-        mysqli_info(),
+        mysqli_info($serendipity['dbConn']),
         $arr);
         // mysqli_affected_rows returns 0 if rows were matched but not changed.
         // mysqli_info returns rows matched
@@ -169,7 +169,7 @@ function serendipity_db_matched_rows() {
 
     preg_match(
         "/^[^0-9]+([0-9]+)[^0-9]+([0-9]+)[^0-9]+([0-9]+)/",
-        mysqli_info(),
+        mysqli_info($serendipity['dbConn']),
         $arr);
         // mysqli_affected_rows returns 0 if rows were matched but not changed.
         // mysqli_info returns rows matched
@@ -230,7 +230,7 @@ function serendipity_db_connect() {
     mysqli_select_db($serendipity['dbConn'], $serendipity['dbName']);
 
     if (defined('SQL_CHARSET') && $serendipity['dbNames']) {
-        mysqli_query("SET NAMES " . SQL_CHARSET, $serendipity['dbConn']);
+        mysqli_query($serendipity['dbConn'], "SET NAMES " . SQL_CHARSET);
     }
 
     return $serendipity['dbConn'];