mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-08 05:36:10 +00:00
fix: mysqli_error needs MySQLi connection as parameter
This commit is contained in:
@@ -31,7 +31,7 @@ mysqli_query($GLOBALS["link"], "UPDATE ".TB_PREFIX."vdata SET
|
||||
crop = '".$_POST['crop']."',
|
||||
maxstore = '".$_POST['maxstore']."',
|
||||
maxcrop = '".$_POST['maxcrop']."'
|
||||
WHERE wref = '".$id."'") or die(mysqli_error());
|
||||
WHERE wref = '".$id."'") or die(mysqli_error($database->dblink));
|
||||
|
||||
header("Location: ../../../Admin/admin.php?p=village&did=".$id."");
|
||||
?>
|
||||
Reference in New Issue
Block a user