]> git.mxchange.org Git - mailer.git/commitdiff
Wrong array used
authorRoland Häder <roland@mxchange.org>
Mon, 14 Jan 2013 05:17:57 +0000 (05:17 +0000)
committerRoland Häder <roland@mxchange.org>
Mon, 14 Jan 2013 05:17:57 +0000 (05:17 +0000)
inc/libs/network_functions.php

index db6ec1458a88e59509765fbb8fdf1bd42316fcc7..761b5b85060bbf7c4f00d8d0ff57d9e7bf44b528 100644 (file)
@@ -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?
        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(
                // 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(