From: Jeremy Malcolm Date: Sun, 28 Sep 2014 21:17:11 +0000 (+0100) Subject: Test for already defined OAuth exception class X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0a96fb1c2f17027c479e6dd4eec3469256fef743;p=quix0rs-gnu-social.git Test for already defined OAuth exception class --- diff --git a/extlib/OAuth.php b/extlib/OAuth.php index 9dc9a99b75..60c50f1cea 100644 --- a/extlib/OAuth.php +++ b/extlib/OAuth.php @@ -3,8 +3,10 @@ /* Generic exception class */ -class OAuthException extends Exception { - // pass +if (!class_exists(OAuthException)) { + class OAuthException extends Exception { + // pass + } } class OAuthConsumer {