summaryrefslogtreecommitdiff
path: root/post.php
diff options
context:
space:
mode:
authorReid 'Crafted' <reidbuddle98@gmail.com>2014-05-13 21:23:06 +0100
committerReid 'Crafted' <reidbuddle98@gmail.com>2014-05-13 21:23:06 +0100
commit78ffd76fcfbc1846ff3b355ffa35015e5f0b6642 (patch)
treea8b7f6f67beb976b93617b7e4cc5b8862fb7d510 /post.php
parentfe126cb4bf103b59fe66fe5f0921560c62f80165 (diff)
Make post.php compatable with PHP 5.3x
Compatible with earlier versions of PHP. This should work on 5.4 too, but I haven't tested it.
Diffstat (limited to 'post.php')
-rw-r--r--post.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/post.php b/post.php
index 133ecd27..9d63d7fa 100644
--- a/post.php
+++ b/post.php
@@ -568,7 +568,8 @@ if (isset($_POST['delete'])) {
}
if ($output = shell_exec_error("cat $filenames | md5sum")) {
- $hash = explode(' ', $output)[0];
+ $explodedvar = explode(' ', $output);
+ $hash = $explodedvar[0];
$post['filehash'] = $hash;
} elseif ($config['max_images'] === 1) {
$post['filehash'] = md5_file($upload);