door manager
This commit is contained in:
@@ -13,7 +13,7 @@ use yii\helpers\Url;
|
||||
<?php
|
||||
/** @var \common\models\Ticket $ticket */
|
||||
$ticket = null;
|
||||
if (count($model->tickets) > 0) {
|
||||
if ( isset($model->tickets) && count($model->tickets) > 0) {
|
||||
$ticket = $model->tickets[0];
|
||||
}
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
$dt->sub( new DateInterval( 'P2D') );
|
||||
|
||||
|
||||
echo \common\components\DateUtil::formatUtc($dt);
|
||||
echo \common\components\DateUtil::formatDateTimeUtc($dt);
|
||||
|
||||
echo " - ";
|
||||
|
||||
@@ -33,7 +33,7 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
$ticketType->time_unit_count = 3;
|
||||
|
||||
$dt2 = \common\components\Helper::getTicketExpirationDate($dt, $ticketType);
|
||||
echo \common\components\DateUtil::formatUtc($dt2);
|
||||
echo \common\components\DateUtil::formatDateTimeUtc($dt2);
|
||||
|
||||
// $dt2 = \common\components\Helper::getTicketExpirationDate($dt, $ticketType);
|
||||
// echo \common\components\DateUtil::formatUtc($dt2);
|
||||
|
||||
Reference in New Issue
Block a user