summaryrefslogtreecommitdiffstats
path: root/api/php/api.php
diff options
context:
space:
mode:
authorsijanec <sijanecantonluka@gmail.com>2020-12-02 00:22:24 +0100
committersijanec <sijanecantonluka@gmail.com>2020-12-02 00:22:24 +0100
commit4a6d7bd88f3ee7dc7c7ed22bf1d6129065357ee5 (patch)
tree36acffb405a105fbbd0dc762de50c9d69c76ffd5 /api/php/api.php
parentdodal error report 500 (diff)
downloadsijanec.eu-4a6d7bd88f3ee7dc7c7ed22bf1d6129065357ee5.tar
sijanec.eu-4a6d7bd88f3ee7dc7c7ed22bf1d6129065357ee5.tar.gz
sijanec.eu-4a6d7bd88f3ee7dc7c7ed22bf1d6129065357ee5.tar.bz2
sijanec.eu-4a6d7bd88f3ee7dc7c7ed22bf1d6129065357ee5.tar.lz
sijanec.eu-4a6d7bd88f3ee7dc7c7ed22bf1d6129065357ee5.tar.xz
sijanec.eu-4a6d7bd88f3ee7dc7c7ed22bf1d6129065357ee5.tar.zst
sijanec.eu-4a6d7bd88f3ee7dc7c7ed22bf1d6129065357ee5.zip
Diffstat (limited to 'api/php/api.php')
-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 1140dde..51d7c8c 100644
--- a/api/php/api.php
+++ b/api/php/api.php
@@ -44,7 +44,7 @@
"ip" => $_SERVER['REMOTE_ADDR'],
"addedby" => "PHP API 0.0.0",
"nonce" => hash('sha256', $vzdevek."|".$datum."|".random_bytes(69))
- i));
+ ));
$response = file_put_contents($commentsfile, $cm, FILE_APPEND); // pri append ni locka
if ($response === FALSE) {
http_response_code(500);