mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-07-19 01:22:21 -04:00
selectcol_arrayref returns undef on a DB error. The previous code only checked truthiness of the result before deciding to DELETE, so a transient SELECT failure would silently skip the prune for that bucket and let the transaction continue to commit an incomplete state. Capture \$dbh->err() after the SELECT and bail out the same way the DELETE error path does. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>