Infolog: Fix double row load if default filter preference is none

'none' was not a valid option and was "fixed", triggering another load.
This commit is contained in:
nathan 2022-10-11 17:13:19 -06:00
parent 241b5ec839
commit 24a1dfbc2e

View File

@ -903,7 +903,7 @@ class infolog_ui
if (isset($_GET['filter']) && $_GET['filter'] != 'default' || !isset($values['nm']['filter']) && !$this->called_by)
{
$values['nm']['filter'] = $_GET['filter'] && $_GET['filter'] != 'default' ? $_GET['filter'] :
$this->prefs['defaultFilter'];
($this->prefs['defaultFilter'] == 'none' ? '' : $this->prefs['defaultFilter']);
}
if (!isset($values['nm']['order']) || !$values['nm']['order'])
{