Deletion from “InstBlocks” table returned wrong message saying the deletion was applied to “Instances” table, now it correctly says it is applied to “InstBlocks” table

This commit is contained in:
pezcurrel 2024-08-26 12:32:55 +02:00
parent c1f0e8779e
commit 008864ede1

View file

@ -6,7 +6,7 @@ function delinstbyid(&$link,&$id,$efunc,$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);
$efunc('Deleted '.mysqli_affected_rows($link).' records from InstBlocks 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);