Browse Source

fix notice

walkor 7 years ago
parent
commit
823aa7c9dd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Worker.php

+ 1 - 1
Worker.php

@@ -719,7 +719,7 @@ class Worker
 
 
         //Show last line
         //Show last line
         $line_last = str_pad('', static::getSingleLineTotalLength(), '-') . PHP_EOL;
         $line_last = str_pad('', static::getSingleLineTotalLength(), '-') . PHP_EOL;
-        $content && static::safeEcho($line_last);
+        !empty($content) && static::safeEcho($line_last);
 
 
         if (static::$daemonize) {
         if (static::$daemonize) {
             static::safeEcho("Input \"php $argv[0] stop\" to stop. Start success.\n\n");
             static::safeEcho("Input \"php $argv[0] stop\" to stop. Start success.\n\n");