From 0a96fb1c2f17027c479e6dd4eec3469256fef743 Mon Sep 17 00:00:00 2001 From: Jeremy Malcolm Date: Sun, 28 Sep 2014 22:17:11 +0100 Subject: [PATCH] Test for already defined OAuth exception class --- extlib/OAuth.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 {