https://reisub.nsupdate.info/git
/
friendica.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
540321d
)
Protect OAuthException declaration to avoid conflict with php-pecl-oauth
author
Hypolite Petovan
<hypolite@mrpetovan.com>
Fri, 23 Nov 2018 03:21:57 +0000
(22:21 -0500)
committer
Hypolite Petovan
<hypolite@mrpetovan.com>
Fri, 23 Nov 2018 03:21:57 +0000
(22:21 -0500)
library/OAuth1.php
patch
|
blob
|
history
diff --git
a/library/OAuth1.php
b/library/OAuth1.php
index
c537f2b
..
4746328
100644
(file)
--- 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 {