From 9e1f6d2cff0bbef912d605d4ae1728f0382b83a4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 6 Mar 2009 18:20:44 +0000 Subject: [PATCH] Fix for 'array-to-string-conversion' bug in request-functions.php --- inc/request-functions.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/inc/request-functions.php b/inc/request-functions.php index 740f7bd52e..61fdcbb916 100644 --- a/inc/request-functions.php +++ b/inc/request-functions.php @@ -164,6 +164,9 @@ function REQUEST_SET_POST ($element, $value) { // And run it eval($eval); + } elseif (is_array($value)) { + // Value is an array so set it directly + $_POST[SQL_ESCAPE($element)] = $value; } else { // Set regular entry $_POST[SQL_ESCAPE($element)] = SQL_ESCAPE($value); -- 2.39.5