|
@@ -270,13 +270,7 @@ trait SQL
|
|
|
if (ini_get("magic_quotes_gpc")) {
|
|
|
return $word;
|
|
|
}
|
|
|
- if(is_array($word)) {
|
|
|
- foreach ($word as $k => $v) {
|
|
|
- $word[$k] = addslashes($v);
|
|
|
- }
|
|
|
- return $word;
|
|
|
- }
|
|
|
- if(is_callable($word, false)) {
|
|
|
+ if(is_object($word) && is_a($word, 'Closure')) {
|
|
|
return $word($this);
|
|
|
}
|
|
|
$this->handleError(in_array(gettype($word), array("object", "resource","resource (closed)")), '期待参数为数组或字符串,获取到的是:'. gettype($word)."(". json_encode($word) .")");
|