瀏覽代碼

NULL not accepted as a replacement for empty arrays as of PHP 5.3

pdontthink 15 年之前
父節點
當前提交
a5644b2e2d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      functions/global.php

+ 1 - 1
functions/global.php

@@ -115,7 +115,7 @@ function sqstripslashes(&$array) {
  *               executed will be returned.
  *               executed will be returned.
  *
  *
  */
  */
-function sq_call_function_suppress_errors($function, $args=NULL) {
+function sq_call_function_suppress_errors($function, $args=array()) {
    global $sm_debug_mode;
    global $sm_debug_mode;
 
 
    $display_errors = ini_get('display_errors');
    $display_errors = ini_get('display_errors');