fix: mysqli_error needs MySQLi connection as parameter

This commit is contained in:
Martin Ambrus
2017-10-17 13:05:13 +02:00
parent 6ceb273163
commit ac5d3538f8
57 changed files with 178 additions and 178 deletions
+1 -1
View File
@@ -237,7 +237,7 @@ $now=time();
if(($now-$oldmovement[0]['starttime'])<90 && $oldmovement[0]['from'] == $village->wid){
$qc="SELECT * FROM " . TB_PREFIX . "movement where proc = 0 and moveid = ".$_GET['moveid'];
$resultc=$database->query($qc) or die(mysqli_error());
$resultc=$database->query($qc) or die(mysqli_error($database->dblink));
if (mysqli_num_rows($resultc)==1){