Fix notice CASE SCHEDULER.
This commit is contained in:
@@ -462,6 +462,12 @@ class CaseScheduler
|
||||
$sDateTmp = '';
|
||||
if ($sStartDay == '') {
|
||||
$sStartDay = date( 'Y-m-d' );
|
||||
} else {
|
||||
$aaStartDay = explode( "|", $aData['SCH_START_DAY'] );
|
||||
$aaStartDay[0] = $aaStartDay[0];
|
||||
$aaStartDay[1] = $aaStartDay[1];
|
||||
$aaStartDay[2]= ($aaStartDay[2] == 7 ? 1 : $aaStartDay[2]);
|
||||
$sStartDay = $aaStartDay[0].'|'.$aaStartDay[1].'|'.$aaStartDay[2];
|
||||
}
|
||||
$dCurrentDay = date( "d" );
|
||||
$dCurrentMonth = date( "m" );
|
||||
@@ -743,6 +749,12 @@ class CaseScheduler
|
||||
if (($sOption != '1') && ($sOption != '4') && ($sOption != '5')) {
|
||||
if ($sStartDay == '') {
|
||||
$sStartDay = date( 'Y-m-d' );
|
||||
} else {
|
||||
$aaStartDay = explode( "|", $aData['SCH_START_DAY'] );
|
||||
$aaStartDay[0] = $aaStartDay[0];
|
||||
$aaStartDay[1] = $aaStartDay[1];
|
||||
$aaStartDay[2]= ($aaStartDay[2] == 7 ? 1 : $aaStartDay[2]);
|
||||
$sStartDay = $aaStartDay[0].'|'.$aaStartDay[1].'|'.$aaStartDay[2];
|
||||
}
|
||||
$dCurrentDay = date( "d" );
|
||||
$dCurrentMonth = date( "m" );
|
||||
|
||||
Reference in New Issue
Block a user