]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Test for already defined OAuth exception class
authorJeremy Malcolm <jeremy@ciroap.org>
Sun, 28 Sep 2014 21:17:11 +0000 (22:17 +0100)
committerJeremy Malcolm <jeremy@ciroap.org>
Sun, 28 Sep 2014 21:17:11 +0000 (22:17 +0100)
extlib/OAuth.php

index 9dc9a99b750ba6439c8dd8f704b5a9d0b9b8f0c1..60c50f1cead310fd348a63093519728d60ef4a26 100644 (file)
@@ -3,8 +3,10 @@
 
 /* Generic exception class
  */
-class OAuthException extends Exception {
-  // pass
+if (!class_exists(OAuthException)) {
+  class OAuthException extends Exception {
+    // pass
+  }
 }
 
 class OAuthConsumer {