CC-3796: If you change the show's start and end time, the length of content will be displayed as ".00"

-refactored empty check on $time
This commit is contained in:
denise 2012-05-18 17:47:26 -04:00
parent d7eb9a9d95
commit f3840f6eac
1 changed files with 1 additions and 1 deletions

View File

@ -574,7 +574,7 @@ class Application_Model_ShowInstance {
{
$time = $this->_showInstance->getDbTimeFilled();
if ($time != "00:00:00" && $time != null && strcmp($time, '')!=0) {
if ($time != "00:00:00" && !empty($time)) {
$time_arr = explode(".", $time);
if (count($time_arr) > 1) {
$time_arr[1] = "." . $time_arr[1];