diff --git a/export-contacts.sh b/export-contacts.sh index 3f2230c..aa7b3f9 100755 --- a/export-contacts.sh +++ b/export-contacts.sh @@ -35,7 +35,7 @@ function print_usage() function vputs($str) { - $out = $GLOBALS['args']['file'] ? STDOUT : STDERR; + $out = $GLOBALS['args']['output'] ? STDERR : STDOUT; fwrite($out, $str); } @@ -99,7 +99,7 @@ class rcmail_export extends rcmail_utils { $result = $CONTACTS->list_records(null, 0, true); if (!$out) { - $out = $GLOBALS['args']['file'] ? STDOUT : STDERR; + $out = STDOUT; } $count=0;