From c6061d598f1ad1d54d2b6df861f07e8a07aefafb Mon Sep 17 00:00:00 2001 From: Zach Prezkuta Date: Mon, 1 Oct 2012 14:07:32 -0600 Subject: [PATCH] don't set a date as a group --- mod/network.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/network.php b/mod/network.php index b5582b5fad..ef1fd877b1 100644 --- a/mod/network.php +++ b/mod/network.php @@ -142,7 +142,7 @@ function network_init(&$a) { if(x($_GET['nets']) && $_GET['nets'] === 'all') unset($_GET['nets']); - $group_id = (($a->argc > 1 && intval($a->argv[1])) ? intval($a->argv[1]) : 0); + $group_id = (($a->argc > 1 && is_numeric($a->argv[1])) ? intval($a->argv[1]) : 0); set_pconfig(local_user(), 'network.view', 'group.selected', $group_id); -- 2.39.5