From 0270a0554c17f93416800f31b51b497b71063a6d Mon Sep 17 00:00:00 2001 From: Tobias Reich Date: Sat, 1 Mar 2014 23:12:37 +0100 Subject: [PATCH] Fixes always shown warning (#90) --- plugins/check.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/check.php b/plugins/check.php index 1946865..ecdd02e 100644 --- a/plugins/check.php +++ b/plugins/check.php @@ -59,7 +59,7 @@ if (substr(sprintf('%o', @fileperms('../data/')), -4)!='0777') $error .= ('Err if ($error=='') echo('Everything is fine. Lychee should work without problems!' . PHP_EOL . PHP_EOL); else echo $error; // Check php.ini Settings -if (ini_get('max_execution_time')<200&&ini_set('upload_max_filesize', '20M')!==true) echo('Warning: You may experience problems when uploading a large amount of photos. Take a look in the FAQ for details.' . PHP_EOL); +if (ini_get('max_execution_time')<200&&ini_set('upload_max_filesize', '20M')===false) echo('Warning: You may experience problems when uploading a large amount of photos. Take a look in the FAQ for details.' . PHP_EOL); // Check mysql version if ($database->server_version<50500) echo('Warning: Lychee uses the GBK charset to avoid sql injections on your MySQL version. Please update to MySQL 5.5 or higher to enable UTF-8 support.' . PHP_EOL);