diff options
author | sijanec <sijanecantonluka@gmail.com> | 2020-12-02 00:40:40 +0100 |
---|---|---|
committer | sijanec <sijanecantonluka@gmail.com> | 2020-12-02 00:40:40 +0100 |
commit | 59eb6745fe1ad368b54a5dbbee3275be892a7929 (patch) | |
tree | fb7b47e8b5c46236190c2296e01769ba2febedd1 /api | |
parent | pop pop pop (diff) | |
download | sijanec.eu-59eb6745fe1ad368b54a5dbbee3275be892a7929.tar sijanec.eu-59eb6745fe1ad368b54a5dbbee3275be892a7929.tar.gz sijanec.eu-59eb6745fe1ad368b54a5dbbee3275be892a7929.tar.bz2 sijanec.eu-59eb6745fe1ad368b54a5dbbee3275be892a7929.tar.lz sijanec.eu-59eb6745fe1ad368b54a5dbbee3275be892a7929.tar.xz sijanec.eu-59eb6745fe1ad368b54a5dbbee3275be892a7929.tar.zst sijanec.eu-59eb6745fe1ad368b54a5dbbee3275be892a7929.zip |
Diffstat (limited to '')
-rw-r--r-- | api/php/api.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/php/api.php b/api/php/api.php index c93b4a4..6fb329e 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_pop(array_shift($cmarray)))); + array_shift($cmarray); array_pop($cmarray); array_pop($cmarray); $cs = implode("\n", $cmarray)."\n"; $response = file_put_contents($commentsfile, $cs, FILE_APPEND); // pri append ni locka if ($response === FALSE) { |