From: Carsten Pfeiffer Date: Sat, 27 Apr 2013 19:08:45 +0000 (+0200) Subject: Wrap class OAuthException with !class_exists X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7e5ec9fcebe47c50fc6503ae9f23f43a604674ba;p=friendica.git Wrap class OAuthException with !class_exists Same problem and solution as discussed on https://drupal.org/node/1334528 --- diff --git a/library/OAuth1.php b/library/OAuth1.php index 0db6fabcbe..53b905e771 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')) { + class OAuthException extends Exception { + // pass + } } class OAuthConsumer {