mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-12 23:56:08 +00:00
Fix(farmlist): raid bugs and PHP 8.3 warnings (#217)
This commit is contained in:
@@ -259,7 +259,7 @@ if (mysqli_num_rows($getnotice) > 0) {
|
||||
<?php if ($database->getVilFarmlist($session->uid)) { ?>
|
||||
|
||||
<div class="markAll">
|
||||
<input type="checkbox" onclick="Allmsg(this.form);">
|
||||
<input class="check" type="checkbox" id="s10" name="s10" onclick="Allmsg(this.form);">
|
||||
<label><?php echo TZ_SELECT_ALL; ?></label>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ $errormsg = $errormsg ?? null;
|
||||
/* =====================================================
|
||||
LOAD SLOT DATA (EDIT MODE)
|
||||
===================================================== */
|
||||
if ($action === 'editSlot' && $eid) {
|
||||
if ($action === 'showSlot' && $eid) {
|
||||
|
||||
$eiddata = $database->getRaidList($eid);
|
||||
|
||||
@@ -192,7 +192,7 @@ if (
|
||||
$lname = $row["name"];
|
||||
$lvname = $database->getVillageField($row["wref"], 'name');
|
||||
|
||||
$selected = ($lid == $lid2) ? 'selected' : '';
|
||||
$selected = ($lid == ($eiddata['lid'] ?? 0)) ? 'selected' : '';
|
||||
|
||||
echo '<option value="'.$lid.'" '.$selected.'>'
|
||||
.$lvname.' - '.$lname.
|
||||
|
||||
Reference in New Issue
Block a user