diff options
author | Mario Vavti <mario@mariovavti.com> | 2018-01-08 11:11:17 +0100 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2018-01-08 11:12:28 +0100 |
commit | 7773ef0ff44e1685b9368635a0278e89630e46c6 (patch) | |
tree | 60b6ddacf773ad552ba54495c70dfa19381855e9 /Zotlabs/Module | |
parent | 2f5990962c9f74d354239aea0153700565155232 (diff) | |
download | volse-hubzilla-7773ef0ff44e1685b9368635a0278e89630e46c6.tar.gz volse-hubzilla-7773ef0ff44e1685b9368635a0278e89630e46c6.tar.bz2 volse-hubzilla-7773ef0ff44e1685b9368635a0278e89630e46c6.zip |
fix regression in app categories
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r-- | Zotlabs/Module/Apps.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Zotlabs/Module/Apps.php b/Zotlabs/Module/Apps.php index 2f61f2932..c672ea467 100644 --- a/Zotlabs/Module/Apps.php +++ b/Zotlabs/Module/Apps.php @@ -22,7 +22,8 @@ class Apps extends \Zotlabs\Web\Controller { if(local_channel()) { Zlib\Apps::import_system_apps(); $syslist = array(); - $list = Zlib\Apps::app_list(local_channel(), (($mode == 'edit') ? true : false), $_GET['cat']); + $cat = ((array_key_exists('cat',$_GET) && $_GET['cat']) ? [ escape_tags($_GET['cat']) ] : ''); + $list = Zlib\Apps::app_list(local_channel(), (($mode == 'edit') ? true : false), $cat); if($list) { foreach($list as $x) { $syslist[] = Zlib\Apps::app_encode($x); @@ -43,7 +44,7 @@ class Apps extends \Zotlabs\Web\Controller { return replace_macros(get_markup_template('myapps.tpl'), array( '$sitename' => get_config('system','sitename'), - '$cat' => ((array_key_exists('cat',$_GET) && $_GET['cat']) ? escape_tags($_GET['cat']) : ''), + '$cat' => $cat, '$title' => t('Apps'), '$apps' => $apps, '$authed' => ((local_channel()) ? true : false), |