summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);