Fix property not existing causing an exception

This commit is contained in:
Dennis Bold
2026-03-31 15:26:04 +01:00
parent 9da8e839c2
commit 21f0ec3cf2
+1 -1
View File
@@ -641,7 +641,7 @@ class XML_Response
if ((int) $this->parameters['extended'] === 1) {
$this->writeZedAttr('files', $this->release->totalpart);
if (($this->release->videos_id > 0 || $this->release->tv_episodes_id > 0) && $this->namespace === 'newznab') {
if (((property_exists($this->release, 'videos_id') && $this->release->videos_id > 0) || (property_exists($this->release, 'tv_episodes_id') && $this->release->tv_episodes_id > 0)) && $this->namespace === 'newznab') {
$this->setTvAttr();
}