Fix file output

This commit is contained in:
Benjamin Renard 2019-01-24 20:19:00 +01:00
parent 193a7296ec
commit 368ccf82ff

View file

@ -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;