]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/vier/theme.php
Replace x() by isset(), !empty() or defaults()
[friendica.git] / view / theme / vier / theme.php
index 9427f1f23b5038739327dc23f362a9b8ed874427..89fea650bac1b6b2c531d09b9885d52f0703ad40 100644 (file)
@@ -214,10 +214,7 @@ function vier_community_info()
 
        //Community_Pages at right_aside
        if ($show_pages && local_user()) {
-               $cid = null;
-               if (x($_GET, 'cid') && intval($_GET['cid']) != 0) {
-                       $cid = $_GET['cid'];
-               }
+               $cid = defaults($_GET, 'cid', null);
 
                //sort by last updated item
                $lastitem = true;