Fixed: removing a private app from the pinned section would error out

pull/11/head
Squidly271 2021-02-18 17:08:21 -05:00
parent 0683644a2e
commit 59fc5c3140
2 changed files with 5 additions and 3 deletions

View File

@ -869,9 +869,11 @@ case 'removePrivateApp':
$templates = readJsonFile($caPaths['community-templates-info']);
$displayed = readJsonFile($caPaths['community-templates-displayed']);
foreach ( $displayed as &$displayType ) {
foreach ( $displayType as &$display ) {
if ( $display['Path'] == $path )
$display['Blacklist'] = true;
if ( is_array($displayType) ) {
foreach ( $displayType as &$display ) {
if ( $display['Path'] == $path )
$display['Blacklist'] = true;
}
}
}
foreach ( $templates as &$template ) {