* Updates the last activity timestamp in the user table.
*
* @author Marcel Werk
- * @copyright 2001-2019 WoltLab GmbH
+ * @copyright 2001-2021 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\System\Cronjob
*/
wcf" . WCF_N . "_session session
SET user_table.lastActivityTime = session.lastActivityTime
WHERE user_table.userID = session.userID
- AND session.userID <> 0";
+ AND session.userID IS NOT NULL";
$statement = WCF::getDB()->prepareStatement($sql);
$statement->execute();
}