diff --git a/lib/Transmission/Model/Torrent.php b/lib/Transmission/Model/Torrent.php index 45acc49..a7b85f0 100644 --- a/lib/Transmission/Model/Torrent.php +++ b/lib/Transmission/Model/Torrent.php @@ -47,7 +47,7 @@ class Torrent extends AbstractModel * @var integer */ protected $startDate; - + /** * @var integer */ @@ -92,7 +92,7 @@ class Torrent extends AbstractModel * @var double */ protected $uploadRatio; - + /** * @var string */ @@ -201,7 +201,10 @@ public function setStatus($status) */ public function getStatus() { - return $this->status->getValue(); + if ($this->status !== null) { + return $this->status->getValue(); + } + return null; } /** @@ -417,7 +420,7 @@ public function isSeeding() { return $this->status->isSeeding(); } - + /** * @return string */