CC-3949: On edit empty show, time_filled becomes null
fix method of checking null
This commit is contained in:
parent
0d770e55ef
commit
2ebf149a65
|
@ -162,7 +162,7 @@ class CcShowInstances extends BaseCcShowInstances {
|
||||||
public function updateDbTimeFilled(PropelPDO $con)
|
public function updateDbTimeFilled(PropelPDO $con)
|
||||||
{
|
{
|
||||||
$timefilled = $this->computeDbTimeFilled($con);
|
$timefilled = $this->computeDbTimeFilled($con);
|
||||||
if($timefilled == null){
|
if(is_null($timefilled)){
|
||||||
$timefilled = "00:00:00";
|
$timefilled = "00:00:00";
|
||||||
}
|
}
|
||||||
$this->setDbTimeFilled($timefilled);
|
$this->setDbTimeFilled($timefilled);
|
||||||
|
|
Loading…
Reference in New Issue