Browse Source

Protect OAuthException declaration to avoid conflict with php-pecl-oauth

tags/2019.01
Hypolite Petovan 1 year ago
parent
commit
6fd294aac5
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      library/OAuth1.php

+ 4
- 2
library/OAuth1.php View File

@@ -3,8 +3,10 @@

/* Generic exception class
*/
class OAuthException extends Exception {
// pass
if (!class_exists('OAuthException', false)) {
class OAuthException extends Exception {
// pass
}
}

class OAuthConsumer {


Loading…
Cancel
Save