1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-29 01:34:31 +01:00

Merge pull request #55 from itsCrafted/patch-1

Make post.php compatable with PHP 5.3x
This commit is contained in:
Marcin Łabanowski 2014-05-13 22:30:42 +02:00
commit d73eddcdf6

View File

@ -568,7 +568,8 @@ if (isset($_POST['delete'])) {
} }
if ($output = shell_exec_error("cat $filenames | md5sum")) { if ($output = shell_exec_error("cat $filenames | md5sum")) {
$hash = explode(' ', $output)[0]; $explodedvar = explode(' ', $output);
$hash = $explodedvar[0];
$post['filehash'] = $hash; $post['filehash'] = $hash;
} elseif ($config['max_images'] === 1) { } elseif ($config['max_images'] === 1) {
$post['filehash'] = md5_file($upload); $post['filehash'] = md5_file($upload);