diff options
author | Mario Vavti <mario@mariovavti.com> | 2018-09-26 16:32:06 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2018-09-26 16:32:06 +0200 |
commit | 1353c291e9d6fbe4cdbe8e4911f99d51e1da9198 (patch) | |
tree | 831d3ff59ee980689b437959a9bda6f4ce138e88 /Zotlabs/Module/Oauth2.php | |
parent | 9af1b62beef76781e3384a536377d9f8123aab07 (diff) | |
download | volse-hubzilla-1353c291e9d6fbe4cdbe8e4911f99d51e1da9198.tar.gz volse-hubzilla-1353c291e9d6fbe4cdbe8e4911f99d51e1da9198.tar.bz2 volse-hubzilla-1353c291e9d6fbe4cdbe8e4911f99d51e1da9198.zip |
add check for local_channel()
Diffstat (limited to 'Zotlabs/Module/Oauth2.php')
-rw-r--r-- | Zotlabs/Module/Oauth2.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Zotlabs/Module/Oauth2.php b/Zotlabs/Module/Oauth2.php index 4c34b499f..c27d7534b 100644 --- a/Zotlabs/Module/Oauth2.php +++ b/Zotlabs/Module/Oauth2.php @@ -11,6 +11,9 @@ class Oauth2 extends Controller { function post() { + if(! local_channel()) + return; + if(! Apps::system_app_installed(local_channel(), 'OAuth2 Apps Manager')) return; @@ -93,6 +96,9 @@ class Oauth2 extends Controller { function get() { + if(! local_channel()) + return; + if(! Apps::system_app_installed(local_channel(), 'OAuth2 Apps Manager')) { //Do not display any associated widgets at this point App::$pdl = ''; |