projects
/
mailer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
65b42fa
)
Fix for 'array-to-string-conversion' bug in request-functions.php
author
Roland Häder
<roland@mxchange.org>
Fri, 6 Mar 2009 18:20:44 +0000
(18:20 +0000)
committer
Roland Häder
<roland@mxchange.org>
Fri, 6 Mar 2009 18:20:44 +0000
(18:20 +0000)
inc/request-functions.php
patch
|
blob
|
history
diff --git
a/inc/request-functions.php
b/inc/request-functions.php
index 740f7bd52eea4aeedb9fbe6e1b3f2521930b276f..61fdcbb916248c35e2e08cbe6b65a7394d004d39 100644
(file)
--- 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);