Commit 015bef3e authored by Penny Leach's avatar Penny Leach
Browse files

simplified the array_to_ph function

parent ecc6b2d9
......@@ -1182,8 +1182,7 @@ function is_mysql() {
* @param array $array input array
*/
function db_array_to_ph($array) {
$repl_fun = create_function('$n', "return '?';");
return array_map($repl_fun, $array);
return array_pad(array(), count($array), '?');
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment