Issue #1004820 by mikeytown2: Notice: Undefined index: type in dblog_build_filter_query()