From 378bc2b13b012988e10aae40e58dc02e9ff960ed Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Mon, 24 Jan 2022 08:57:30 +0100 Subject: [PATCH] Missing function 'delete_image' when deling item. Fixed. --- inventory/manage/items.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inventory/manage/items.php b/inventory/manage/items.php index 286601ef..d4904041 100644 --- a/inventory/manage/items.php +++ b/inventory/manage/items.php @@ -56,7 +56,7 @@ function set_edit($stock_id) $_POST['del_image'] = 0; } -function del_image($stock_id) +function delete_image($stock_id) { foreach (array('jpg', 'png', 'gif') as $ext) { $filename = company_path().'/images/'.item_img_name($stock_id).".".$ext; -- 2.30.2