From: Joe Hunt Date: Mon, 27 Apr 2015 08:04:03 +0000 (+0200) Subject: Fixed empty(trim)) error in versions prior to php 5.5 X-Git-Tag: v2.4.2~19^2~187 X-Git-Url: https://delta.frontaccounting.com/gitweb/?p=fa-stable.git;a=commitdiff_plain;h=5a261543d3d1b2b3c98fce8c6e6849b39ec62dcc Fixed empty(trim)) error in versions prior to php 5.5 --- 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');