Merge pull request #501 from fermionic/network-remember-filters

don't set a date as a group
This commit is contained in:
fermionic 2012-10-01 13:08:48 -07:00
commit 9daafe7489

View File

@ -142,7 +142,7 @@ function network_init(&$a) {
if(x($_GET['nets']) && $_GET['nets'] === 'all') if(x($_GET['nets']) && $_GET['nets'] === 'all')
unset($_GET['nets']); 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); set_pconfig(local_user(), 'network.view', 'group.selected', $group_id);