From bd0551b22076b82a6d49e9f7a2b2e0c90a1b2326 Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Fri, 05 Feb 2016 07:25:27 -0500
Subject: [PATCH] Secure also downloads of addressbook exports, managesieve script exports and Enigma keys exports

---
 program/steps/addressbook/import.inc |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/program/steps/addressbook/import.inc b/program/steps/addressbook/import.inc
index 9c108ff..4425498 100644
--- a/program/steps/addressbook/import.inc
+++ b/program/steps/addressbook/import.inc
@@ -136,7 +136,7 @@
                 }
                 if ($existing && $existing->count) {
                     $IMPORT_STATS->skipped++;
-                    $IMPORT_STATS->skipped_names[] = $vcard->displayname ? $vcard->displayname : $email;
+                    $IMPORT_STATS->skipped_names[] = $vcard->displayname ?: $email;
                     continue;
                 }
             }
@@ -164,7 +164,7 @@
                 }
 
                 $IMPORT_STATS->inserted++;
-                $IMPORT_STATS->names[] = $a_record['name'] ? $a_record['name'] : $email;
+                $IMPORT_STATS->names[] = $a_record['name'] ?: $email;
             }
             else {
                 $IMPORT_STATS->errors++;

--
Gitblit v1.9.1