From 09897064c67e5eb8009b364e48b56ea1fcf84bf8 Mon Sep 17 00:00:00 2001 From: James Date: Mon, 13 Aug 2012 10:59:21 -0400 Subject: [PATCH] CC-4215: Smart Playlist: Exception happens when generate with criteria Length is 2012-08-10 14:00:00 - fixed --- airtime_mvc/application/models/Block.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airtime_mvc/application/models/Block.php b/airtime_mvc/application/models/Block.php index 286a7735c..cca9b63c5 100644 --- a/airtime_mvc/application/models/Block.php +++ b/airtime_mvc/application/models/Block.php @@ -976,7 +976,7 @@ EOT; $column = CcFilesPeer::getTableMap()->getColumnByPhpName(self::$criteria2PeerMap[$d['sp_criteria_field']]); // validation on type of column if ($d['sp_criteria_field'] == 'length') { - if (!preg_match("/(\d{2}):(\d{2}):(\d{2})/", $d['sp_criteria_value'])) { + if (!preg_match("/^(\d{2}):(\d{2}):(\d{2})$/", $d['sp_criteria_value'])) { $error[] = "'Length' should be in '00:00:00' format"; } } else if ($column->getType() == PropelColumnTypes::TIMESTAMP) {