X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fnetwork.php;h=e74df1633aab0daebfeb440826aa1ac1788f9a2f;hb=3359f3f5c7ecc4b6a34c4fcfc095ab4dd5fab0f1;hp=64863b080d047492aa5baabef64c60c34097e6ba;hpb=3f448d9a422ab8bc886ee760ab8f1e1cddad099a;p=friendica.git diff --git a/mod/network.php b/mod/network.php index 64863b080d..e74df1633a 100644 --- a/mod/network.php +++ b/mod/network.php @@ -42,6 +42,7 @@ function network_init(App $a) { $group_id = (($a->argc > 1 && is_numeric($a->argv[1])) ? intval($a->argv[1]) : 0); + $cid = 0; if (x($_GET, 'cid') && intval($_GET['cid']) != 0) { $cid = $_GET['cid']; $_GET['nets'] = 'all'; @@ -883,17 +884,19 @@ function networkThreadedView(App $a, $update = 0) { * @param App $a The global App * @return string Html of the networktab */ -function network_tabs(App $a) { +function network_tabs(App $a) +{ // item filter tabs /// @TODO fix this logic, reduce duplication /// $a->page['content'] .= '
'; - list($no_active, $all_active, $postord_active, $conv_active, $new_active, $starred_active, $bookmarked_active, $spam_active) = network_query_get_sel_tab($a); + // if no tabs are selected, defaults to comments - if ($no_active=='active') $all_active='active'; + if ($no_active == 'active') { + $all_active = 'active'; + } - $cmd = (($datequery) ? '' : $a->cmd); - $len_naked_cmd = strlen(str_replace('/new','',$cmd)); + $cmd = $a->cmd; // tabs $tabs = array(