Fix file output
This commit is contained in:
parent
193a7296ec
commit
368ccf82ff
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue