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

---
 plugins/enigma/lib/enigma_error.php |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)

diff --git a/plugins/enigma/lib/enigma_error.php b/plugins/enigma/lib/enigma_error.php
index d563854..d5f190b 100644
--- a/plugins/enigma/lib/enigma_error.php
+++ b/plugins/enigma/lib/enigma_error.php
@@ -51,11 +51,6 @@
 
     function getData($name)
     {
-        if ($name) {
-            return $this->data[$name];
-        }
-        else {
-            return $this->data;
-        }
+        return $name ? $this->data[$name] : $this->data;
     }
 }

--
Gitblit v1.9.1