fixed exceptions

This commit is contained in:
kremsy authored and Steffen Schröder committed 2014-05-01 17:35:33 +02:00
1 parent 689e572c62
commit d3cc9db29c
5 files changed
+44 -11

No files matched your search

@@ -98,7 +98,9 @@ class ManiaExchangeManager {
* @param $mxId
*/
public function unsetMap($mxId) {
unset($this->mxIdUidVector[$mxId]);
if (isset($this->mxIdUidVector[$mxId])) {
unset($this->mxIdUidVector[$mxId]);
}
}
/**
@@ -272,9 +274,9 @@ class ManiaExchangeManager {
// compile search URL
$url = 'http://' . $titlePrefix . '.mania-exchange.com/tracksearch?api=on';
$game = explode('@', $titleId);
$game = explode('@', $titleId);
$envNumber = $this->getEnvironment($game[0]);
if($env != '' || $envNumber != -1){
if ($env != '' || $envNumber != -1) {
$url .= '&environments=' . $envNumber;
}
if ($name != '') {