aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2022-10-20 11:40:31 +0200
committerMario Vavti <mario@mariovavti.com>2022-10-20 11:40:31 +0200
commitbb5b33a0d3963aabed2e7b55c67bb7b81492cf9e (patch)
tree3fde2940c90151f1f80b3cc7b5f8ff90628e503d /Zotlabs/Lib
parent53931017b99c6fc77fc7632747e51b06a89b2287 (diff)
downloadvolse-hubzilla-bb5b33a0d3963aabed2e7b55c67bb7b81492cf9e.tar.gz
volse-hubzilla-bb5b33a0d3963aabed2e7b55c67bb7b81492cf9e.tar.bz2
volse-hubzilla-bb5b33a0d3963aabed2e7b55c67bb7b81492cf9e.zip
fix more php warnings
Diffstat (limited to 'Zotlabs/Lib')
-rw-r--r--Zotlabs/Lib/Apps.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/Zotlabs/Lib/Apps.php b/Zotlabs/Lib/Apps.php
index a29992bbc..ad80e1094 100644
--- a/Zotlabs/Lib/Apps.php
+++ b/Zotlabs/Lib/Apps.php
@@ -236,6 +236,7 @@ class Apps {
$ret['photo'] = $baseurl . '/' . get_default_profile_photo(80);
$ret['type'] = 'system';
+ $ret['plugin'] = '';
foreach($ret as $k => $v) {
if(strpos($v,'http') === 0) {
@@ -600,12 +601,12 @@ class Apps {
'$edit' => ((local_channel() && $installed && $mode == 'edit') ? t('Edit') : ''),
'$delete' => ((local_channel() && $mode == 'edit') ? t('Delete') : ''),
'$undelete' => ((local_channel() && $mode == 'edit') ? t('Undelete') : ''),
- '$settings_url' => ((local_channel() && $installed && $mode == 'list') ? $papp['settings_url'] : ''),
- '$deleted' => $papp['deleted'],
+ '$settings_url' => ((local_channel() && $installed && $mode == 'list' && isset($papp['settings_url'])) ? $papp['settings_url'] : ''),
+ '$deleted' => $papp['deleted'] ?? false,
'$feature' => ((isset($papp['embed']) || $mode == 'edit') ? false : true),
'$pin' => ((isset($papp['embed']) || $mode == 'edit') ? false : true),
- '$featured' => ((strpos($papp['categories'], 'nav_featured_app') === false) ? false : true),
- '$pinned' => ((strpos($papp['categories'], 'nav_pinned_app') === false) ? false : true),
+ '$featured' => ((isset($papp['categories']) && strpos($papp['categories'], 'nav_featured_app') === false) ? false : true),
+ '$pinned' => ((isset($papp['categories']) && strpos($papp['categories'], 'nav_pinned_app') === false) ? false : true),
'$mode' => $mode,
'$add' => t('Add to app-tray'),
'$remove' => t('Remove from app-tray'),