Ещё больше Undefined index fix
This commit is contained in:
parent
4524183fd2
commit
4a2c246203
@ -1642,20 +1642,24 @@ function showitem($row, $type, $returned = false, $infOnly = false)
|
||||
global $user;
|
||||
$runes_exp = ['1' => 10500, '2' => 23500, '3' => 38500, '4' => 57000, '5' => 77000, '6' => 103000, '7' => 136500, '8' => 171500, '9' => 212500, '10' => 257500];
|
||||
$returnHTML = '';
|
||||
$magic = [];
|
||||
$incmagic = [];
|
||||
$magic['chanse'] = 0;
|
||||
$magic['time'] = 0;
|
||||
$magic['targeted'] = 0;
|
||||
$up = '';
|
||||
if ((($row['maxdur'] <= ($row['duration'])) || ($row['dategoden'] && $row['dategoden'] <= time()))) {
|
||||
destructitem($row['id']);
|
||||
}
|
||||
|
||||
|
||||
if (!empty($row['includemagic'])) $incmagic = db::c()->query('SELECT * FROM `magic` WHERE `id` = ?i', $row['includemagic'])->fetch_assoc();
|
||||
|
||||
if (!empty($row['magic'])) $magic = db::c()->query('SELECT * FROM `magic` WHERE `id` = ?i', $row['magic'])->fetch_assoc();
|
||||
else {
|
||||
$magic['chanse'] = $incmagic['chanse'];
|
||||
$magic['time'] = $incmagic['time'];
|
||||
$magic['targeted'] = $incmagic['targeted'];
|
||||
}
|
||||
if (!empty($row['includemagic'])) $incmagic = db::c()->query('SELECT * FROM `magic` WHERE `id` = ?i', $row['includemagic'])->fetch_assoc();
|
||||
|
||||
$incmagic['name'] = $row['includemagicname'];
|
||||
$incmagic['cur'] = $row['includemagicdex'];
|
||||
$incmagic['max'] = $row['includemagicmax'];
|
||||
|
Loading…
Reference in New Issue
Block a user