diff --git a/misc/testing/Releases/recategorize.php b/misc/testing/Releases/recategorize.php index f1595b40f..91c44def0 100644 --- a/misc/testing/Releases/recategorize.php +++ b/misc/testing/Releases/recategorize.php @@ -102,7 +102,9 @@ function categorizeRelease($where, $update = true, $echoOutput = false) ) ); $release = Release::find($rowRel->id); - $release->retag($catId['tags']); + if (! empty($release)) { + $release->retag($catId['tags']); + } } $chgCount++; }