From 7acba41dc67e85fe889f7213c9ba0ba158983f81 Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Tue, 23 Oct 2012 21:26:12 +1100 Subject: more cleanup --- include/delivery.php | 34 ++++++++-------------------------- 1 file changed, 8 insertions(+), 26 deletions(-) (limited to 'include/delivery.php') diff --git a/include/delivery.php b/include/delivery.php index 0d99f48a2..1c6b55164 100644 --- a/include/delivery.php +++ b/include/delivery.php @@ -1,46 +1,28 @@ set_baseurl(get_config('system','url')); - logger('delivery: invoked: ' . print_r($argv,true), LOGGER_DEBUG); - $cmd = $argv[1]; - $item_id = intval($argv[2]); + $cmd = argv(1); + $item_id = intval(argv(2)); - for($x = 3; $x < $argc; $x ++) { + for($x = 3; $x < argc(); $x ++) { - $contact_id = intval($argv[$x]); + $contact_id = intval(argv($x)); // Some other process may have delivered this item already. -- cgit v1.2.3