summaryrefslogtreecommitdiffstats
path: root/api/php/api.php
diff options
context:
space:
mode:
authorsijanec <sijanecantonluka@gmail.com>2020-12-02 00:38:56 +0100
committersijanec <sijanecantonluka@gmail.com>2020-12-02 00:38:56 +0100
commit57051ac2405bdcba33221c3cb2dd062189a7f4b2 (patch)
tree03d4d80093bb62d798c5ace9ff218a4e98246580 /api/php/api.php
parentres bi moral to lokalno preizkusit pred commitom (diff)
downloadsijanec.eu-57051ac2405bdcba33221c3cb2dd062189a7f4b2.tar
sijanec.eu-57051ac2405bdcba33221c3cb2dd062189a7f4b2.tar.gz
sijanec.eu-57051ac2405bdcba33221c3cb2dd062189a7f4b2.tar.bz2
sijanec.eu-57051ac2405bdcba33221c3cb2dd062189a7f4b2.tar.lz
sijanec.eu-57051ac2405bdcba33221c3cb2dd062189a7f4b2.tar.xz
sijanec.eu-57051ac2405bdcba33221c3cb2dd062189a7f4b2.tar.zst
sijanec.eu-57051ac2405bdcba33221c3cb2dd062189a7f4b2.zip
Diffstat (limited to '')
-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 fc8a9ba..c93b4a4 100644
--- a/api/php/api.php
+++ b/api/php/api.php
@@ -46,7 +46,7 @@
"nonce" => hash('sha256', $vzdevek."|".$datum."|".random_bytes(69))
)), YAML_UTF8_ENCODING, YAML_LN_BREAK);
$cmarray = explode("\n", $cm);
- array_pop(array_pop(array_shift($cmarray)));
+ array_pop(array_pop(array_pop(array_shift($cmarray))));
$cs = implode("\n", $cmarray)."\n";
$response = file_put_contents($commentsfile, $cs, FILE_APPEND); // pri append ni locka
if ($response === FALSE) {