// Revert normalization
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8019 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -839,7 +839,7 @@ class Dejala extends CarrierModule
|
||||
do
|
||||
{
|
||||
$wd = date("w", $balladUtc);
|
||||
if ((int)$calendar[$wd]['stop_hour'] < (int)$calendar[$wd]['start_hour']) continue ;
|
||||
if ((int)($calendar[$wd]['stop_hour']) < (int)($calendar[$wd]['start_hour'])) continue ;
|
||||
|
||||
$dates[$iDate]['value'] = date("Y/m/d", $balladUtc);
|
||||
$dates[$iDate]['ts'] = $balladUtc ;
|
||||
@@ -856,9 +856,9 @@ class Dejala extends CarrierModule
|
||||
return ;
|
||||
|
||||
$now = (int)(date("H", $ctime)) ;
|
||||
if ((int)$dates[0]['stop_hour'] > $now && (int)$dates[0]['start_hour'] < $now)
|
||||
if ((int)($dates[0]['stop_hour']) > $now && (int)($dates[0]['start_hour']) < $now)
|
||||
$dates[0]['start_hour'] = $now ;
|
||||
elseif ((int)$dates[0]['ts'] == $now && (int)$dates[0]['stop_hour'] < $now)
|
||||
elseif ((int)($dates[0]['ts']) == $now && (int)($dates[0]['stop_hour']) < $now)
|
||||
array_shift($dates) ;
|
||||
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ class DejalaCarrierUtils
|
||||
$id_zone = 1;
|
||||
$moduleCountryIsoCode = strtoupper($dejalaConfig->country);
|
||||
$countryID = Country::getByIso($moduleCountryIsoCode);
|
||||
if ($countryID)
|
||||
if ((int)($countryID))
|
||||
$id_zone = Country::getIdZone($countryID);
|
||||
|
||||
//TODO Will have to review this and apply proper code.
|
||||
|
||||
Reference in New Issue
Block a user