Initialize the `$cursorOffset` variable
authorAlexander Ebert <ebert@woltlab.com>
Wed, 31 Jan 2024 16:37:19 +0000 (17:37 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 31 Jan 2024 16:37:19 +0000 (17:37 +0100)
See https://www.woltlab.com/community/thread/304469-threads-im-cli-worker-undefined-variable-cursoroffset/

wcfsetup/install/files/lib/system/cli/command/WorkerCLICommand.class.php

index 0cc4b73d63c1c6b1a6dd512170a0fc21f383dcbe..e170b1d6f6519b195ecff0b205da89c77b3eea6f 100644 (file)
@@ -233,6 +233,7 @@ class WorkerCLICommand implements ICLICommand
             'WCF_SESSION_ID' => CLIWCF::getSession()->sessionID,
         ]);
 
+        $cursorOffset = 0;
         try {
             // 1) Spawn the processes.
             $processes = [];