Skip to content
Snippets Groups Projects
Commit 70392814 authored by Olav Morken's avatar Olav Morken
Browse files

parseMetadata: Proper check of arguments.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@335 44740490-163a-0410-bde0-09ae8108e29a
parent 18ad0686
No related branches found
No related tags found
No related merge requests found
...@@ -72,7 +72,7 @@ foreach($argv as $a) { ...@@ -72,7 +72,7 @@ foreach($argv as $a) {
printHelp(); printHelp();
exit(0); exit(0);
case '--out-dir': case '--out-dir':
if($v === NULL || $v === '') { if($v === NULL || strlen($v) === 0) {
echo('The --out-dir option requires an parameter.' . "\n"); echo('The --out-dir option requires an parameter.' . "\n");
echo('Please run `' . $progName . ' --help` for usage information.' . "\n"); echo('Please run `' . $progName . ' --help` for usage information.' . "\n");
exit(1); exit(1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment