]> git.mxchange.org Git - friendica.git/commitdiff
Add explicit parentheses in condition
authorHypolite Petovan <mrpetovan@gmail.com>
Wed, 19 Apr 2017 11:05:48 +0000 (07:05 -0400)
committerHypolite Petovan <mrpetovan@gmail.com>
Wed, 19 Apr 2017 11:05:48 +0000 (07:05 -0400)
include/pgettext.php

index 424e5b2a365bfe1945aba3d471b6848e536bd470..a9ae987d259b77bbbab3dafa35b0154c553b75c5 100644 (file)
@@ -44,7 +44,7 @@ function get_browser_language() {
        // check if we have translations for the preferred languages and pick the 1st that has
        for ($i=0; $i<count($lang_list); $i++) {
                $lang = $lang_list[$i];
-               if($lang === 'en' || file_exists("view/lang/$lang") && is_dir("view/lang/$lang")) {
+               if($lang === 'en' || (file_exists("view/lang/$lang") && is_dir("view/lang/$lang"))) {
                        $preferred = $lang;
                        break;
                }