From: Alexander Ebert Date: Wed, 31 Jan 2024 16:37:19 +0000 (+0100) Subject: Initialize the `$cursorOffset` variable X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=83c16d7ebc980d64a58a23654d90b8fcdb3ee6de;p=GitHub%2FWoltLab%2FWCF.git Initialize the `$cursorOffset` variable See https://www.woltlab.com/community/thread/304469-threads-im-cli-worker-undefined-variable-cursoroffset/ --- diff --git a/wcfsetup/install/files/lib/system/cli/command/WorkerCLICommand.class.php b/wcfsetup/install/files/lib/system/cli/command/WorkerCLICommand.class.php index 0cc4b73d63..e170b1d6f6 100644 --- a/wcfsetup/install/files/lib/system/cli/command/WorkerCLICommand.class.php +++ b/wcfsetup/install/files/lib/system/cli/command/WorkerCLICommand.class.php @@ -233,6 +233,7 @@ class WorkerCLICommand implements ICLICommand 'WCF_SESSION_ID' => CLIWCF::getSession()->sessionID, ]); + $cursorOffset = 0; try { // 1) Spawn the processes. $processes = [];