Fix error in conditional operators priority

This commit is contained in:
Techan 2014-03-31 20:14:21 +02:00 committed by czaks
parent 81b0612d56
commit 8b7dd1acca

View File

@ -330,7 +330,7 @@ if (isset($_POST['delete'])) {
// Check for a file
if ($post['op'] && !isset($post['no_longer_require_an_image_for_op'])) {
if (!isset($_FILES['file']['tmp_name']) || $_FILES['file']['tmp_name'] == '' && $config['force_image_op'])
if ((!isset($_FILES['file']['tmp_name']) || $_FILES['file']['tmp_name'] == '') && $config['force_image_op'])
error($config['error']['noimage']);
}