]> git.mxchange.org Git - core.git/commitdiff
Wrong tests ...
authorRoland Haeder <roland@mxchange.org>
Mon, 29 Jun 2015 03:12:52 +0000 (05:12 +0200)
committerRoland Haeder <roland@mxchange.org>
Mon, 29 Jun 2015 03:12:52 +0000 (05:12 +0200)
Signed-off-by: Roland Häder <roland@mxchange.org>
inc/classes/main/handler/tasks/class_TaskHandler.php

index 4be13cc3997da9fffb427f76a9b056c866343b35..da7c2af6b5da87376d9150031d383c025f14d4de 100644 (file)
@@ -220,8 +220,8 @@ class TaskHandler extends BaseHandler implements Registerable, HandleableTask {
 
                // If the task is 'idle_loop', a deplay of zero seconds is fine
                assert($intervalDelay >= 0);
-               assert(($taskName != 'idle_loop') && ($intervalDelay > 0));
-               assert(($taskName != 'idle_loop') && ($startupDelay > 0));
+               assert(($taskName === 'idle_loop') || (($taskName != 'idle_loop') && ($intervalDelay > 0)));
+               assert(($taskName === 'idle_loop') || (($taskName != 'idle_loop') && ($startupDelay > 0)));
 
                // Create the entry
                $taskEntry = array(