From 2c2cfa0899695993c17867c52c4690d46fbfbadc Mon Sep 17 00:00:00 2001 From: "laurent.duretz" Date: Mon, 1 Mar 2010 13:02:49 +0000 Subject: Issue 1471 : incomplete test correction git-svn-id: http://piwigo.org/svn/branches/2.0@5012 68402e56-0260-453c-a942-63ccdbb3a9ee --- tools/create_listing_file.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/create_listing_file.php b/tools/create_listing_file.php index 4f0306673..a3bb243b3 100644 --- a/tools/create_listing_file.php +++ b/tools/create_listing_file.php @@ -207,7 +207,7 @@ function pwg_check_graphics() list($pwg_conf['gd_version_major']) = preg_split('/[.]+/', $pwg_conf['gd_version_full']); // Backup input/output format support - array_push($pwg_conf['gd_supported_format'], isset($info['JPG Support']) or isset($info['JPEG Support']) ? 'jpeg' : NULL); + array_push($pwg_conf['gd_supported_format'], (isset($info['JPG Support']) and $info['JPG Support']) or (isset($info['JPEG Support']) and $info['JPEG Support']) ? 'jpeg' : NULL); array_push($pwg_conf['gd_supported_format'], $info['PNG Support'] ? 'png' : NULL); array_push($pwg_conf['gd_supported_format'], ($info['GIF Read Support'] and $info['GIF Create Support']) ? 'gif' : NULL); @@ -1106,7 +1106,7 @@ function pwg_test_exit() $format_list = array(); $format = ($info['GIF Create Support']) ? 'gif' : NULL; array_push($format_list, $format); - $format = (isset($info['JPG Support']) or isset($info['JPEG Support'])) ? 'jpg' : NULL; + $format = ((isset($info['JPG Support']) and $info['JPG Support']) or (isset($info['JPEG Support']) and $info['JPEG Support'])) ? 'jpg' : NULL; array_push($format_list, $format); $format = ($info['PNG Support']) ? 'png' : NULL; array_push($format_list, $format); -- cgit v1.2.3