diff options
author | Mario Vavti <mario@mariovavti.com> | 2022-10-20 11:40:31 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2022-10-20 11:40:31 +0200 |
commit | bb5b33a0d3963aabed2e7b55c67bb7b81492cf9e (patch) | |
tree | 3fde2940c90151f1f80b3cc7b5f8ff90628e503d /Zotlabs/Module/Appman.php | |
parent | 53931017b99c6fc77fc7632747e51b06a89b2287 (diff) | |
download | volse-hubzilla-bb5b33a0d3963aabed2e7b55c67bb7b81492cf9e.tar.gz volse-hubzilla-bb5b33a0d3963aabed2e7b55c67bb7b81492cf9e.tar.bz2 volse-hubzilla-bb5b33a0d3963aabed2e7b55c67bb7b81492cf9e.zip |
fix more php warnings
Diffstat (limited to 'Zotlabs/Module/Appman.php')
-rw-r--r-- | Zotlabs/Module/Appman.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Zotlabs/Module/Appman.php b/Zotlabs/Module/Appman.php index d287115d4..2ada83c3e 100644 --- a/Zotlabs/Module/Appman.php +++ b/Zotlabs/Module/Appman.php @@ -13,7 +13,7 @@ class Appman extends \Zotlabs\Web\Controller { if(! local_channel()) return; - if($_POST['url']) { + if(isset($_POST['url']) && $_POST['url']) { $arr = array( 'uid' => intval($_REQUEST['uid']), 'url' => escape_tags($_REQUEST['url']), @@ -50,7 +50,7 @@ class Appman extends \Zotlabs\Web\Controller { return; } - if($_POST['install']) { + if(isset($_POST['install']) && $_POST['install']) { Apps::app_install(local_channel(),$papp); if(Apps::app_installed(local_channel(),$papp)) info( t('App installed.') . EOL); @@ -73,7 +73,7 @@ class Appman extends \Zotlabs\Web\Controller { } - if($_POST['delete']) { + if(isset($_POST['deleted']) && $_POST['deleted']) { // Fetch the app for sync before it is deleted (if it is deletable)) $sync = q("SELECT * FROM app WHERE app_channel = %d AND app_id = '%s' LIMIT 1", |