Skip to content
This repository has been archived by the owner on Mar 24, 2021. It is now read-only.

Commit

Permalink
changed some PHP 7.1 features to fit for PHP 5.5
Browse files Browse the repository at this point in the history
[wsp]
  • Loading branch information
Akizo96 committed May 29, 2017
1 parent 0b57966 commit fd5f052
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tar/files/lib/system/discord/API.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,13 @@ public function execute() {

$request->execute();
return $request->getReply();
} catch (HTTPException|HTTPServerErrorException|HTTPUnauthorizedException|HTTPNotFoundException $exception) {
} catch (HTTPException $exception) {
return false;
} catch (HTTPServerErrorException $exception) {
return false;
} catch (HTTPUnauthorizedException $exception) {
return false;
} catch (HTTPNotFoundException $exception) {
return false;
}
}
Expand Down

0 comments on commit fd5f052

Please sign in to comment.