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/mail/addcontact.inc |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/program/steps/mail/addcontact.inc b/program/steps/mail/addcontact.inc
index 76bf2ee..64a01d2 100644
--- a/program/steps/mail/addcontact.inc
+++ b/program/steps/mail/addcontact.inc
@@ -1,6 +1,6 @@
 <?php
 
-/*
+/**
  +-----------------------------------------------------------------------+
  | program/steps/mail/addcontact.inc                                     |
  |                                                                       |
@@ -63,7 +63,7 @@
             // TODO: show dialog to complete record
             // if ($error['type'] == rcube_addressbook::ERROR_VALIDATE) { }
 
-            $OUTPUT->show_message($error['message'] ? $error['message'] : 'errorsavingcontact', 'error');
+            $OUTPUT->show_message($error['message'] ?: 'errorsavingcontact', 'error');
             $OUTPUT->send();
         }
 
@@ -87,7 +87,7 @@
 }
 
 if (!$done) {
-    $OUTPUT->show_message($plugin['message'] ? $plugin['message'] : 'errorsavingcontact', 'error');
+    $OUTPUT->show_message($plugin['message'] ?: 'errorsavingcontact', 'error');
 }
 
 $OUTPUT->send();

--
Gitblit v1.9.1