Merge pull request #4475 from frytimo/patch-2

Update apps_delete.php
This commit is contained in:
Nate
2019-08-30 20:50:42 -04:00
committed by GitHub

View File

@@ -59,7 +59,7 @@ else {
foreach ($row['menu'] as $index => &$menu) {
//delete menu groups and permissions from the database
$array['menu_item_groups'][$index]['menu_item_uuid'] = $menu['uuid'];
$array['menu_items'][$index['menu_item_uuid'] = $menu['uuid'];
$array['menu_items'][$index]['menu_item_uuid'] = $menu['uuid'];
//delete the app from the file system
if (strlen($menu['path']) > 0) {
system('rm -rf '.dirname($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.$menu['path']));
@@ -98,4 +98,4 @@ else {
header("Location: apps.php");
return;
?>
?>