]> git.mxchange.org Git - friendica.git/commitdiff
added curly braces + removed more useless intval() calls on file_exists()
authorRoland Häder <roland@mxchange.org>
Tue, 31 Jan 2017 07:57:16 +0000 (08:57 +0100)
committerRoland Haeder <roland@mxchange.org>
Sat, 18 Mar 2017 23:52:02 +0000 (00:52 +0100)
Signed-off-by: Roland Häder <roland@mxchange.org>
mod/admin.php

index 8227252c60bc1830a35f52190eef438cfc2bacc1..334f8ea6a6b25b32f8774a1b21ae90c87b0d4718 100644 (file)
@@ -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);