Fixed: removing a private app from the pinned section would error out
parent
0683644a2e
commit
59fc5c3140
Binary file not shown.
|
@ -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 ) {
|
||||
|
|
Loading…
Reference in New Issue