diff --git a/web/lib/delinstbyid.php b/web/lib/delinstbyid.php index bae0193..1f3a5b9 100644 --- a/web/lib/delinstbyid.php +++ b/web/lib/delinstbyid.php @@ -5,6 +5,8 @@ function delinstbyid(&$link,&$id,$efunc,$eol) { $efunc('Deleted '.mysqli_affected_rows($link).' records from Instances table.'.$eol); if (!query($link,'DELETE FROM InstActivity WHERE InstID='.$id,'eecho',$eol)) return(false); $efunc('Deleted '.mysqli_affected_rows($link).' records from InstActivity table.'.$eol); + if (!query($link,'DELETE FROM InstBlocks WHERE InstID='.$id,'eecho',$eol)) return(false); + $efunc('Deleted '.mysqli_affected_rows($link).' records from Instances table.'.$eol); if (!query($link,'DELETE FROM InstChecks WHERE InstID='.$id,'eecho',$eol)) return(false); $efunc('Deleted '.mysqli_affected_rows($link).' records from InstChecks table.'.$eol); if (!query($link,'DELETE FROM InstFinancing WHERE InstID='.$id,'eecho',$eol)) return(false); @@ -15,6 +17,8 @@ function delinstbyid(&$link,&$id,$efunc,$eol) { $efunc('Deleted '.mysqli_affected_rows($link).' records from InstOurLangs table.'.$eol); if (!query($link,'DELETE FROM InstPolicies WHERE InstID='.$id,'eecho',$eol)) return(false); $efunc('Deleted '.mysqli_affected_rows($link).' records from InstPolicies table.'.$eol); + if (!query($link,'DELETE FROM InstRules WHERE InstID='.$id,'eecho',$eol)) return(false); + $efunc('Deleted '.mysqli_affected_rows($link).' records from Instances table.'.$eol); if (!query($link,'DELETE FROM InstTags WHERE InstID='.$id,'eecho',$eol)) return(false); $efunc('Deleted '.mysqli_affected_rows($link).' records from InstTags table.'.$eol); if (!query($link,'DELETE FROM InstTrends WHERE InstID='.$id,'eecho',$eol)) return(false);