mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-17 01:56:07 +00:00
fix: mysqli_error needs MySQLi connection as parameter
This commit is contained in:
@@ -111,7 +111,7 @@ $query2 = "SELECT
|
||||
|
||||
//$query2;
|
||||
|
||||
$result2 = mysqli_query($GLOBALS['link'],$query2) or die(mysqli_error());
|
||||
$result2 = mysqli_query($GLOBALS['link'],$query2) or die(mysqli_error($database->dblink));
|
||||
|
||||
$targetalliance = array();
|
||||
$neutralarray = array();
|
||||
|
||||
@@ -121,7 +121,7 @@ $query2 = "SELECT
|
||||
ORDER BY FIND_IN_SET(".TB_PREFIX."wdata.id,'$maparray2')";
|
||||
|
||||
//echo $query2;
|
||||
$result2 = mysqli_query($GLOBALS['link'],$query2) or die(mysqli_error());
|
||||
$result2 = mysqli_query($GLOBALS['link'],$query2) or die(mysqli_error($database->dblink));
|
||||
|
||||
$targetalliance = array();
|
||||
$neutralarray = array();
|
||||
|
||||
Reference in New Issue
Block a user