From: Roland Häder Date: Mon, 14 Jan 2013 05:17:57 +0000 (+0000) Subject: Wrong array used X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d537c9f6acdd0794c824777c765fab579ba88270;p=mailer.git Wrong array used --- diff --git a/inc/libs/network_functions.php b/inc/libs/network_functions.php index db6ec1458a..761b5b8506 100644 --- a/inc/libs/network_functions.php +++ b/inc/libs/network_functions.php @@ -1231,7 +1231,7 @@ function logNetworkResponseHeaders ($networkId, $networkTypeId, $headers, $type) assert(in_array($type, array('MANUAL', 'CRON'))); // Is debug logging enabled or status code not 200 OK? - if ((getConfig('network_logging_debug') == 'Y') || (!isHttpStatusOkay($response[0]))) { + if ((getConfig('network_logging_debug') == 'Y') || (!isHttpStatusOkay($headers[0]))) { // Add entry SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_network_header_logging` (`network_id`, `network_type_id`, `network_http_status_code`, `network_http_headers`, `network_logging_type`) VALUES(%s, %s, '%s', '%s', '%s')", array(