X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=bin%2FmarketPromo.php;h=66f758d0b577d7da5396b65514a17f979f73f11c;hb=9b12102b1834709cd29305e6bae700058adcd131;hp=c385c1d3bc85eff505f46c2930175a97e74dc3e6;hpb=684195f33b11e3067200dd3a9e14304bd7d04463;p=platal.git diff --git a/bin/marketPromo.php b/bin/marketPromo.php index c385c1d..66f758d 100755 --- a/bin/marketPromo.php +++ b/bin/marketPromo.php @@ -6,8 +6,8 @@ require_once 'connect.db.inc.php'; require_once 'marketing.inc.php'; $opts = getopt('f:l:m:'); -if (($opts['f'] && $opts['f'] == '-') || empty($opts['f'])) { - $file = 'php://stdin'; +if (($opts['f'] && $opts['f'] == '-') || empty($opts['f'])) { + $file = 'php://stdin'; } else { $file = $opts['f']; }