diff options
| author | Reid 'Crafted' <reidbuddle98@gmail.com> | 2014-05-13 21:23:06 +0100 |
|---|---|---|
| committer | Reid 'Crafted' <reidbuddle98@gmail.com> | 2014-05-13 21:23:06 +0100 |
| commit | 78ffd76fcfbc1846ff3b355ffa35015e5f0b6642 (patch) | |
| tree | a8b7f6f67beb976b93617b7e4cc5b8862fb7d510 | |
| parent | fe126cb4bf103b59fe66fe5f0921560c62f80165 (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.
| -rw-r--r-- | post.php | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |
