Skip to content

Commit

Permalink
Merge branch 'master' into error-on-empty-jumpTo
Browse files Browse the repository at this point in the history
  • Loading branch information
Grummfy committed Jan 20, 2015
2 parents 6856ad2 + 7960415 commit 4f66544
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
},
"require": {
"php": ">=5.3.3",
"apache/log4php": "2.1.0"
"apache/log4php": "2.3.0"
}
}
12 changes: 5 additions & 7 deletions src/mg/PAGI/Client/Result/PlayResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -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?');
}
}
}
}
}
}

0 comments on commit 4f66544

Please sign in to comment.