]> git.mxchange.org Git - friendica.git/blobdiff - mod/profperm.php
And some more places
[friendica.git] / mod / profperm.php
index 2b3c07526be8dfeb78ac2684e2b5dc4c37a63999..c49fb7f282721434a29ea5d6fe5ac9fec3c9c19a 100644 (file)
@@ -34,11 +34,9 @@ function profperm_content(App $a) {
        // Switch to text mod interface if we have more than 'n' contacts or group members
 
        $switchtotext = PConfig::get(local_user(),'system','groupedit_image_limit');
-       if($switchtotext === false)
-               $switchtotext = Config::get('system','groupedit_image_limit');
-       if($switchtotext === false)
-               $switchtotext = 400;
-
+       if (is_null($switchtotext)) {
+               $switchtotext = Config::get('system','groupedit_image_limit', 400);
+       }
 
        if(($a->argc > 2) && intval($a->argv[1]) && intval($a->argv[2])) {
                $r = q("SELECT `id` FROM `contact` WHERE `blocked` = 0 AND `pending` = 0 AND `self` = 0