From 46f7b7096450939fe03c95aa81ce06ae4bfca89d Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Mon, 28 Mar 2016 06:51:43 -0400
Subject: [PATCH] Enable reply/reply-all/forward buttons also in preview frame of message/rfc822

---
 plugins/database_attachments/database_attachments.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/plugins/database_attachments/database_attachments.php b/plugins/database_attachments/database_attachments.php
index f3804f3..aacafae 100644
--- a/plugins/database_attachments/database_attachments.php
+++ b/plugins/database_attachments/database_attachments.php
@@ -155,7 +155,7 @@
      */
     protected function _key($args)
     {
-        $uname = $args['path'] ? $args['path'] : $args['name'];
+        $uname = $args['path'] ?: $args['name'];
         return $args['group'] . md5(time() . $uname . $_SESSION['user_id']);
     }
 

--
Gitblit v1.9.1