// Merge -> revision 7906
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@7909 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -188,8 +188,20 @@ class MRGetRelayPoint implements IMondialRelayWSMethod
|
||||
|
||||
// Clean Content
|
||||
foreach($result as &$relayPoint)
|
||||
{
|
||||
$totalEmptyFields = 0;
|
||||
foreach ($relayPoint as $key => &$value)
|
||||
{
|
||||
$value = trim($value);
|
||||
if (empty($value))
|
||||
++$totalEmptyFields;
|
||||
}
|
||||
if ($totalEmptyFields == count($relayPoint))
|
||||
{
|
||||
$errors[] = $this->_mondialRelay->l('MondialRelay can\'t find any relay point near your address. Maybe your address isn\'t properly filled ?');
|
||||
break;
|
||||
}
|
||||
}
|
||||
$success = $result;
|
||||
}
|
||||
$this->_resultList['error'] = $errors;
|
||||
|
||||
Reference in New Issue
Block a user