Fix(farmlist): raid bugs and PHP 8.3 warnings (#217)

This commit is contained in:
Ferywir
2026-06-15 06:53:14 +02:00
committed by GitHub
parent 8398265641
commit 2e09148bb7
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -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>
+2 -2
View File
@@ -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.