From 7e5ec9fcebe47c50fc6503ae9f23f43a604674ba Mon Sep 17 00:00:00 2001 From: Carsten Pfeiffer Date: Sat, 27 Apr 2013 21:08:45 +0200 Subject: [PATCH] Wrap class OAuthException with !class_exists Same problem and solution as discussed on https://drupal.org/node/1334528 --- library/OAuth1.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/library/OAuth1.php b/library/OAuth1.php index 0db6fabcb..53b905e77 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 {