From 368ccf82ff3182177fe06c67b20f41a117bf7553 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Thu, 24 Jan 2019 20:19:00 +0100 Subject: [PATCH] Fix file output --- export-contacts.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;