From bcaec2a4c30786bbeaaf9c21e93a3103dad7b562 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville <rodolphe@quiedeville.org> Date: Wed, 20 Dec 2006 16:44:52 +0000 Subject: [PATCH] Suppression options inutiles --- scripts/import-extern/import-product.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/import-extern/import-product.php b/scripts/import-extern/import-product.php index 81bf0ac1df3..d31c3b4a017 100644 --- a/scripts/import-extern/import-product.php +++ b/scripts/import-extern/import-product.php @@ -29,13 +29,12 @@ * wget "http://materiel.net/partenaire/search.php3?format=xml&nobanner=1" */ -$opt = getopt("f:u:i:"); +$opt = getopt("f:u:"); $userid = $opt['u']; -$idfourn = $opt['i']; $file = $opt['f']; -if (strlen(trim($file)) == 0 || strlen(trim($idfourn)) == 0 || strlen(trim($userid)) == 0) +if (strlen(trim($file)) == 0 || strlen(trim($userid)) == 0) { print "Usage :\n php import-product.php -f <filename> -i <id_fournisseur> -u <userid>\n"; exit; -- GitLab