From: Iain Patterson Date: Mon, 22 Apr 2013 19:49:48 +0000 (-0400) Subject: Fixed check for quantity in order. X-Git-Tag: 2013-04-22~2 X-Git-Url: http://git.iain.cx/?a=commitdiff_plain;h=6d640e4fbc1c3dc974bbbbdd23b951b187293fdf;p=readifood.git Fixed check for quantity in order. We were still checking for a valid quantity even though the field has been removed. --- diff --git a/lib/order.php b/lib/order.php index f1911c5..9c9e1c9 100644 --- a/lib/order.php +++ b/lib/order.php @@ -432,7 +432,6 @@ $requester_id = $_POST['requester_id']; $beneficiary_id = $_POST['beneficiary_id']; $hub_id = $_POST['hub_id']; - $quantity = $_POST['quantity']; $driver_id = $_POST['driver_id']; if (! $driver_id) $driver_id = null; $state = $_POST['state']; @@ -470,11 +469,6 @@ } else $hub_id = null; - if (! is_numeric($quantity)) { - echo "

Invalid quantity!

\n"; - return false; - } - if ($new && isset($_POST['recurrence'])) $recurrence = $_POST['recurrence']; if (! $recurrence) $recurrence = 0;