From 5ec213569095679532b6ca7829d2eff8e058c51c Mon Sep 17 00:00:00 2001 From: James Brooks Date: Sun, 28 Dec 2014 10:15:50 +0000 Subject: [PATCH] A message shouldn't be empty --- app/models/Incident.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/Incident.php b/app/models/Incident.php index 2cd0ad6a..6d46f16e 100644 --- a/app/models/Incident.php +++ b/app/models/Incident.php @@ -68,6 +68,6 @@ class Incident extends Eloquent implements \Dingo\Api\Transformer\TransformableI */ public function hasMessage() { - return ($this->message !== ''); + return (trim($this->message) !== ''); } }