Add check for passwordstatus

This commit is contained in:
DariusIII
2025-12-21 21:48:59 +01:00
parent 85b4904e6f
commit 33ec07eedf
+1 -1
View File
@@ -565,7 +565,7 @@ class XML_Response
"\t<li>Poster: {$this->release->fromname}</li>\n".
"\t<li>Posted: {$this->release->postdate}</li>\n";
$pstatus = match ($this->release->passwordstatus) {
$pstatus = match ($this->release->passwordstatus ?? 0) {
0 => 'None',
1 => 'Possibly Passworded',
2 => 'Probably not viable',