zengzizhao %!s(int64=6) %!d(string=hai) anos
pai
achega
2ed2bd736b
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      Lib/Timer.php

+ 4 - 0
Lib/Timer.php

@@ -90,6 +90,10 @@ class Timer
             return false;
         }
 
+        if ($args === null) {
+            $args = [];
+        }
+
         if (self::$_event) {
             return self::$_event->add($time_interval,
                 $persistent ? EventInterface::EV_TIMER : EventInterface::EV_TIMER_ONCE, $func, $args);