summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsijanec <sijanecantonluka@gmail.com>2020-12-02 00:37:56 +0100
committersijanec <sijanecantonluka@gmail.com>2020-12-02 00:37:56 +0100
commit3261fe0153f197640164859cd8a67129b6065622 (patch)
tree1e639a1a1c2ef0dba822d531c34564ee91251b38
parentfixed yaml emit (diff)
downloadsijanec.eu-3261fe0153f197640164859cd8a67129b6065622.tar
sijanec.eu-3261fe0153f197640164859cd8a67129b6065622.tar.gz
sijanec.eu-3261fe0153f197640164859cd8a67129b6065622.tar.bz2
sijanec.eu-3261fe0153f197640164859cd8a67129b6065622.tar.lz
sijanec.eu-3261fe0153f197640164859cd8a67129b6065622.tar.xz
sijanec.eu-3261fe0153f197640164859cd8a67129b6065622.tar.zst
sijanec.eu-3261fe0153f197640164859cd8a67129b6065622.zip
-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 6f82bc9..fc8a9ba 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);
- pop(pop(array_shift($cmarray)));
+ 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) {