}
// Sets a status message and code
-function WERNIS_STATUS_MESSAGE ($msg, $status) {
- $GLOBALS['wernis_data']['message'] = $msg;
- $GLOBALS['wernis_data']['status'] = $status;
+function WERNIS_STATUS_MESSAGE ($message, $status) {
+ $GLOBALS['wernis_data']['message'] = $message;
+ $GLOBALS['wernis_data']['status'] = $status;
}
// Get the status message
// All (maybe) fine so remove the response header from server
for ($idx = (count($response) - 1); $idx > 1; $idx--) {
- $line = $response[$idx];
+ $line = trim($response[$idx]);
if (!empty($line)) {
$response = $line;
break;
// Is the array an array? ;-)
if (!is_array($array)) {
// Log error and return
- DEBUG_LOG(__FUNCTION__, __LINE__, ' Type '.gettype($array).'!=array.');
+ DEBUG_LOG(__FUNCTION__, __LINE__, 'Type ' . gettype($array) . ' != array.');
return;
} // END - if