From 18882c57c76290abb6a1013cbb719b4d95c2238b Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 2 Feb 2011 00:45:54 +0000 Subject: [PATCH] Remove an app's categories when removing the app --- setup/inc/class.setup.inc.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup/inc/class.setup.inc.php b/setup/inc/class.setup.inc.php index aa85a437d2..b4df947a8f 100644 --- a/setup/inc/class.setup.inc.php +++ b/setup/inc/class.setup.inc.php @@ -657,6 +657,8 @@ class setup } $setup_info = $GLOBALS['setup_info']; + // Remove categories + $this->db->delete(categories::TABLE, array('cat_appname'=>$appname),__LINE__,__FILE__); //echo 'DELETING application: ' . $appname; $this->db->delete($this->applications_table,array('app_name'=>$appname),__LINE__,__FILE__); $this->clear_session_cache();