From: Joe Hunt Date: Mon, 24 Jan 2022 07:57:30 +0000 (+0100) Subject: Missing function 'delete_image' when deling item. Fixed. X-Git-Url: https://delta.frontaccounting.com/gitweb/?p=fa-stable.git;a=commitdiff_plain;h=378bc2b13b012988e10aae40e58dc02e9ff960ed Missing function 'delete_image' when deling item. Fixed. --- 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;