From d537c9f6acdd0794c824777c765fab579ba88270 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Mon, 14 Jan 2013 05:17:57 +0000 Subject: [PATCH] Wrong array used --- inc/libs/network_functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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( -- 2.39.5