09.12
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user