Protect OAuthException declaration to avoid conflict with php-pecl-oauth
authorHypolite Petovan <hypolite@mrpetovan.com>
Fri, 23 Nov 2018 03:21:57 +0000 (22:21 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Fri, 23 Nov 2018 03:21:57 +0000 (22:21 -0500)
library/OAuth1.php

index c537f2b..4746328 100644 (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 {