From 8433ec5445d8af9235735a29d58c5e53daaf8b8d Mon Sep 17 00:00:00 2001 From: James Date: Tue, 18 Sep 2012 16:50:42 -0400 Subject: [PATCH] CC-4482: Smart Blocks -> tracks with empty "Album" name are NOT filtered in - fixed --- airtime_mvc/application/models/Block.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/airtime_mvc/application/models/Block.php b/airtime_mvc/application/models/Block.php index 0c349d9f4..fa305a90a 100644 --- a/airtime_mvc/application/models/Block.php +++ b/airtime_mvc/application/models/Block.php @@ -1291,6 +1291,10 @@ SQL; } else { $qry->add($spCriteria, $spCriteriaValue, $spCriteriaModifier); } + + if ($spCriteriaModifier == Criteria::NOT_ILIKE || $spCriteriaModifier == Criteria::NOT_EQUAL) { + $qry->addOr($spCriteria, null, Criteria::ISNULL); + } } catch (Exception $e) { Logging::info($e); }