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:
parent
d7eb9a9d95
commit
f3840f6eac
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue