From 70392814d1ac41d68d4512a6589245a29642e803 Mon Sep 17 00:00:00 2001 From: Olav Morken <olav.morken@uninett.no> Date: Thu, 28 Feb 2008 12:10:14 +0000 Subject: [PATCH] parseMetadata: Proper check of arguments. git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@335 44740490-163a-0410-bde0-09ae8108e29a --- bin/parseMetadata.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/parseMetadata.php b/bin/parseMetadata.php index 81cc54b59..87be37165 100755 --- a/bin/parseMetadata.php +++ b/bin/parseMetadata.php @@ -72,7 +72,7 @@ foreach($argv as $a) { printHelp(); exit(0); case '--out-dir': - if($v === NULL || $v === '') { + if($v === NULL || strlen($v) === 0) { echo('The --out-dir option requires an parameter.' . "\n"); echo('Please run `' . $progName . ' --help` for usage information.' . "\n"); exit(1); -- GitLab