This commit is contained in:
jakub
2025-12-09 21:04:59 +01:00
parent f5d75c0941
commit 982a62c63c
15 changed files with 2689 additions and 6 deletions

View File

@@ -68,12 +68,9 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$isCountValid = $count === ($n*$m);
$areAllValuesValid = true;
for ($i = 0; $i < $count; $i++) {
if (!is_numeric($values[$i])) {
$areAllValuesValid = false;
} else {
$values[$i] = (int)$values[$i];
}
foreach ($values as $value) {
if (!is_numeric($value)) { $areAllValuesValid = false; }
else { $value = (int)$value;}
}
echo '<div class="box">';
if ($areAllValuesValid && $isValidDimensions && $isCountValid && $isRowNumValid) {