do NOT return empty, if old_template is not set on initial call

This commit is contained in:
Ralf Becker 2015-02-10 08:19:34 +00:00
parent 46277505c5
commit 374dcb5d64

View File

@ -406,8 +406,8 @@ class infolog_ui
} }
} }
// Template change forces the UI to do a full update first, no point in getting rows right now // Template change forces the UI to do a full update first, no point in getting rows right now
if($old_template != $query['template']) return 0; if($old_template && $old_template != $query['template']) return 0;
// do we need to read the custom fields, depends on the column is enabled and customfields exist, prefs are filter specific // do we need to read the custom fields, depends on the column is enabled and customfields exist, prefs are filter specific
// so we have to check that as well // so we have to check that as well
$details = $query['filter2'] == 'all'; $details = $query['filter2'] == 'all';