From 5a261543d3d1b2b3c98fce8c6e6849b39ec62dcc Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Mon, 27 Apr 2015 10:04:03 +0200 Subject: [PATCH] Fixed empty(trim)) error in versions prior to php 5.5 --- purchasing/po_entry_items.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/purchasing/po_entry_items.php b/purchasing/po_entry_items.php index a4afb367..3a898d3d 100644 --- a/purchasing/po_entry_items.php +++ b/purchasing/po_entry_items.php @@ -360,7 +360,7 @@ function can_commit() } } - if ($_SESSION['PO']->trans_type == ST_SUPPINVOICE && empty(trim(get_post('supp_ref')))) + if ($_SESSION['PO']->trans_type == ST_SUPPINVOICE && trim(get_post('supp_ref')) == false) { display_error(_("You must enter a supplier's invoice reference.")); set_focus('supp_ref'); -- 2.30.2