-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Sampopankki uses 0 as some of their return codes which does pass php's empty().
The gateaway is fully working besides this little issue and here is how i fixed it:
/**
* checkFields
* Verifies that the rows in $fields have values
*/
public function checkFields(array $fields) {
foreach ($fields as $k => $v) {
/*
* do not use empty() here since some providers use status code 0 as valid return code
*/
if ($v == '') {
return FALSE;
}
}
return TRUE;
} Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels