Skip to content

Warning: Array to string conversion thrown in trigger specificdate when only "today" is set as the specific date and no previous run has occurred today #315

Description

@mikeJKU

In the current version of tool_lifecycle, if a workflow uses the trigger specificdate with only “today” set as the specific date, and no previous run has occurred yet today, the following warning is thrown: “Warning: Array to string conversion
Warning can be resolved by editing file /trigger/specificdate/lib.php on line 129:

} else { // Should run today.
    // Bugfix: Return timestamp instead of array
    //$nextrun = $today;
    $nextrundate = mktime(0, 0, 0, $date['mon'], $date['day'], $today['year']);
    if ($nextrundate < $current) {
        $nextrundate = mktime(0, 0, 0, $date['mon'], $date['day'], $today['year'] + 1);
    }
    $nextrun = min($nextrundate, $nextrun);
}

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions