diff --git a/src/mg/PAGI/Client/Result/PlayResult.php b/src/mg/PAGI/Client/Result/PlayResult.php index cf62a1f..1277361 100644 --- a/src/mg/PAGI/Client/Result/PlayResult.php +++ b/src/mg/PAGI/Client/Result/PlayResult.php @@ -57,14 +57,12 @@ public function __construct(IReadResult $result) parent::__construct($result); if ($result->hasData()) { // check offset - if ($result->hasData()) { - $data = explode('=', $result->getData()); - if (isset($data[1])) { - if ($data[1] == 0) { - throw new SoundFileException('Invalid format?'); - } + $data = explode('=', $result->getData()); + if (isset($data[1])) { + if ($data[1] == 0) { + throw new SoundFileException('Invalid format?'); } } } } -} \ No newline at end of file +}