From: Hypolite Petovan Date: Fri, 23 Nov 2018 03:21:57 +0000 (-0500) Subject: Protect OAuthException declaration to avoid conflict with php-pecl-oauth X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6fd294aac5876e178e45cb7c857a6c68511426d1;p=friendica.git Protect OAuthException declaration to avoid conflict with php-pecl-oauth --- diff --git a/library/OAuth1.php b/library/OAuth1.php index c537f2b252..4746328316 100644 --- a/library/OAuth1.php +++ b/library/OAuth1.php @@ -3,8 +3,10 @@ /* Generic exception class */ -class OAuthException extends Exception { - // pass +if (!class_exists('OAuthException', false)) { + class OAuthException extends Exception { + // pass + } } class OAuthConsumer {