From b7e9a324f7d34259f82d7d7ce0c566f46585bf9a Mon Sep 17 00:00:00 2001 From: DariusIII Date: Wed, 2 Sep 2015 23:49:35 +0200 Subject: [PATCH] Add check for empty string in games covers. --- newznab/controllers/Games.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/newznab/controllers/Games.php b/newznab/controllers/Games.php index d2ecf9610..fdda96dd5 100644 --- a/newznab/controllers/Games.php +++ b/newznab/controllers/Games.php @@ -432,11 +432,11 @@ class Games switch ($this->_classUsed) { case "desura": - if (isset($this->_gameResults['cover'])) { + if (isset($this->_gameResults['cover']) && $this->_gameResults['cover'] != '') { $con['coverurl'] = (string)$this->_gameResults['cover']; } - if (isset($this->_gameResults['backdrop'])) { + if (isset($this->_gameResults['backdrop']) && $this->_gameResults['backdrop'] != '') { $con['backdropurl'] = (string)$this->_gameResults['backdrop']; } @@ -501,7 +501,7 @@ class Games } break; case "gl": - if (isset($this->_gameResults['cover'])) { + if (isset($this->_gameResults['cover']) && $this->_gameResults['cover'] != '') { $con['coverurl'] = (string)$this->_gameResults['cover']; } @@ -529,11 +529,11 @@ class Games } break; case "steam": - if (isset($this->_gameResults['cover'])) { + if (isset($this->_gameResults['cover']) && $this->_gameResults['cover'] != '') { $con['coverurl'] = (string)$this->_gameResults['cover']; } - if (isset($this->_gameResults['backdrop'])) { + if (isset($this->_gameResults['backdrop']) && $this->_gameResults['backdrop'] != '') { $con['backdropurl'] = (string)$this->_gameResults['backdrop']; }