Fix array issue in ReleaseCleaner

This commit is contained in:
DariusIII
2025-12-18 11:27:13 +01:00
parent cbac9d24b4
commit d8ea335fae
+1 -1
View File
@@ -162,7 +162,7 @@ class ReleaseCleaning
$title = Predb::query()->where(['predb.requestid' => $hit[1], 'g.name' => $reqGname])->join('usenet_groups as g', 'g.id', '=', 'predb.groups_id')->first(['predb.title', 'predb.id']);
}
// don't match against ab.teevee if title is for just the season
if ($groupName === 'alt.binaries.teevee' && preg_match('/\.S\d\d\./', $title['title'], $hit)) {
if ($title !== null && $groupName === 'alt.binaries.teevee' && preg_match('/\.S\d\d\./', $title['title'], $hit)) {
$title = null;
}
if ($title !== null) {