MantisBT: master e4b23f72

Author Committer Branch Timestamp Parent
dregad dregad master 2023-03-01 12:21 master 35416386
Affected Issues  0032832: Remove version_cache_row()'s 2nd parameter
Changeset

Remove version_cache_row()'s 2nd parameter

$p_trigger_errors allows the function to conditionally throw an
Exception or return False when the Version can't be found.

This is a legacy construct going back to when trigger_error() was used
instead of Exceptions, and is only used once in version_exists().

To simplify code, the parameter is removed and a try/catch block is
used to replace the single use case.

Fixes 0032832

mod - core/version_api.php Diff File