Project

General

Profile

Actions

Regression #13833

closed

Cron jobs are not removed by ``install_cron_job`` when set inactive as they should be

Added by Jim Pingle almost 2 years ago. Updated almost 2 years ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
Configuration Backend
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
23.01
Release Notes:
Force Exclusion
Affected Version:
Affected Architecture:

Description

There is a regression in install_cron_job where it fails to remove cron jobs when they are set inactive ($active == false)

When refactored for PHP 8.1, it's doing an array_slice() on the results of config_get_path() which can't work as it's not going to return a reference which array_splice() expects.

Looks like that can easily be replaced by config_del_path() instead of array_splice().

There are no other instances where that happens in the code, so it's a unique regression.

Actions

Also available in: Atom PDF