summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--api/php/api.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/php/api.php b/api/php/api.php
index 51d7c8c..c2893ac 100644
--- a/api/php/api.php
+++ b/api/php/api.php
@@ -23,7 +23,7 @@
header("Content-Type: text/plain");
exit("400: Napaka. V zahtevi ni določeno, na kaj odgovarjate.");
}
- if (empty($_REQUEST["is-submitter-human"] != "true")) {
+ if ($_REQUEST["is-submitter-human"] != "true") {
http_response_code(400);
header("Content-Type: text/plain");
exit("400: Napaka. Izgleda, kakor da avtomatizirate zahteve. Koda napake: jebise");