From 5f1196eba5441cb33bcd0397b33b9eb0a7efe7ed Mon Sep 17 00:00:00 2001 From: Iglocska Date: Thu, 24 Sep 2015 11:26:23 +0200 Subject: [PATCH] Fix to an issue that blocked event blacklist entries from being added manually, fixes #676 --- VERSION.json | 2 +- app/Controller/EventBlacklistsController.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/VERSION.json b/VERSION.json index 41e701d7d..167b8ac48 100644 --- a/VERSION.json +++ b/VERSION.json @@ -1 +1 @@ -{"major":2, "minor":3, "hotfix":133} \ No newline at end of file +{"major":2, "minor":3, "hotfix":134} \ No newline at end of file diff --git a/app/Controller/EventBlacklistsController.php b/app/Controller/EventBlacklistsController.php index 6d27d404a..cc91f4225 100644 --- a/app/Controller/EventBlacklistsController.php +++ b/app/Controller/EventBlacklistsController.php @@ -59,9 +59,9 @@ class EventBlacklistsController extends AppController { if ($this->EventBlacklist->save( array( 'event_uuid' => $uuid, - 'comment' => $data['EventBlacklist']['comment'], - 'event_info' => $data['EventBlacklist']['info'], - 'event_orgc' => $data['EventBlacklist']['orgc'], + 'comment' => !empty($data['EventBlacklist']['comment']) ? $data['EventBlacklist']['comment'] : '', + 'event_info' => !empty($data['EventBlacklist']['info']) ? $data['EventBlacklist']['info'] : '', + 'event_orgc' => !empty($data['EventBlacklist']['orgc']) ? $data['EventBlacklist']['orgc'] : '', ) ) ) {