mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-12 14:21:03 +00:00
fix: mysqli_error needs MySQLi connection as parameter
This commit is contained in:
@@ -82,7 +82,7 @@ if($_POST) {
|
||||
|
||||
|
||||
// Fetch all links
|
||||
$query = mysqli_query($GLOBALS['link'],'SELECT * FROM `' . TB_PREFIX . 'links` WHERE `userid` = ' . $session->uid . ' ORDER BY `pos` ASC') or die(mysqli_error());
|
||||
$query = mysqli_query($GLOBALS['link'],'SELECT * FROM `' . TB_PREFIX . 'links` WHERE `userid` = ' . $session->uid . ' ORDER BY `pos` ASC') or die(mysqli_error($database->dblink));
|
||||
$links = array();
|
||||
while($data = mysqli_fetch_assoc($query)) {
|
||||
$links[] = $data;
|
||||
|
||||
Reference in New Issue
Block a user