Skip to content
This repository has been archived by the owner on Jan 10, 2020. It is now read-only.

Commit

Permalink
Merge pull request #7 from martinbean/patch-1
Browse files Browse the repository at this point in the history
Check if OAuthException class is already defined
  • Loading branch information
cakebaker committed May 13, 2015
2 parents 60d389b + 276e734 commit c1a1be4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions OAuth.php
Expand Up @@ -26,8 +26,11 @@

/* Generic exception class
*/
class OAuthException extends Exception {
// pass

if (!class_exists('OAuthException')) {
class OAuthException extends Exception {
// pass
}
}

class OAuthConsumer {
Expand Down

0 comments on commit c1a1be4

Please sign in to comment.