diff --git a/tasks/calc/index.php b/tasks/calc/index.php index e2382b1..e11b0aa 100644 --- a/tasks/calc/index.php +++ b/tasks/calc/index.php @@ -22,7 +22,7 @@ $result = ""; if ( - array_key_exists("operand1", $_POST) && + isset($_POST["operand1"], $_POST["operand2"], $_POST["operator"]) && is_numeric($_POST["operand1"]) && is_numeric($_POST["operand2"]) ) { @@ -55,7 +55,7 @@