Fix notice CASE SCHEDULER.

This commit is contained in:
Freddy Daniel Rojas Valda
2014-02-11 12:22:00 -04:00
parent e6639607fe
commit 03e6583233

View File

@@ -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" );