From aeb0ed32c82b5587a410d826151bed7704303f00 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 31 Jan 2017 08:57:16 +0100 Subject: [PATCH] added curly braces + removed more useless intval() calls on file_exists() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- mod/admin.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mod/admin.php b/mod/admin.php index 8227252c60..334f8ea6a6 100644 --- a/mod/admin.php +++ b/mod/admin.php @@ -1707,9 +1707,9 @@ function admin_page_themes(App $a) { continue; } - $is_experimental = intval(file_exists($file.'/experimental')); - $is_supported = 1-(intval(file_exists($file.'/unsupported'))); - $is_allowed = intval(in_array($f,$allowed_themes)); + $is_experimental = file_exists($file.'/experimental'); + $is_supported = (!file_exists($file.'/unsupported')); + $is_allowed = in_array($f,$allowed_themes); if ($is_allowed OR $is_supported OR get_config("system", "show_unsupported_themes")) { $themes[] = array('name' => $f, 'experimental' => $is_experimental, 'supported' => $is_supported, 'allowed' => $is_allowed); -- 2.39.5