Fix for 'array-to-string-conversion' bug in request-functions.php
authorRoland Häder <roland@mxchange.org>
Fri, 6 Mar 2009 18:20:44 +0000 (18:20 +0000)
committerRoland Häder <roland@mxchange.org>
Fri, 6 Mar 2009 18:20:44 +0000 (18:20 +0000)
inc/request-functions.php

index 740f7bd..61fdcbb 100644 (file)
@@ -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);