]> git.mxchange.org Git - friendica.git/commitdiff
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 c537f2b252f7db0c8f69967859702bbbb4f30093..47463283161a018099b9aba50710d9159d91f44f 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 {