From 78ffd76fcfbc1846ff3b355ffa35015e5f0b6642 Mon Sep 17 00:00:00 2001 From: Reid 'Crafted' Date: Tue, 13 May 2014 21:23:06 +0100 Subject: [PATCH] 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. --- post.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);