SAAS-223: Airtime Usage Metric: Amount of time spent broadcasting

- fixed setting end_time
This commit is contained in:
denise 2012-05-22 16:53:04 -04:00
parent b2f39ae66b
commit 453b343284
1 changed files with 4 additions and 3 deletions

View File

@ -237,8 +237,9 @@ class Application_Model_LiveLog
public static function SetNewLogTime($state, $dateTime){
try {
$con = Propel::getConnection();
if ($state == 'L') {
$scheduled = Application_Model_Preference::GetSourceSwitchStatus('scheduled_play');
if ($state == 'L' && $scheduled == 'on') {
self::SetEndTime('S', $dateTime);
}
@ -298,4 +299,4 @@ class Application_Model_LiveLog
}
}
}
}