From ac86c3100a1030026024c33c1cf02ec79f08ff51 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 19 Apr 2015 16:01:41 -0400 Subject: Add Mailgun integration (incoming emails) --- app/Model/Project.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/Model') diff --git a/app/Model/Project.php b/app/Model/Project.php index 231d57e7..158de295 100644 --- a/app/Model/Project.php +++ b/app/Model/Project.php @@ -68,6 +68,10 @@ class Project extends Base */ public function getByIdentifier($identifier) { + if (empty($identifier)) { + return false; + } + return $this->db->table(self::TABLE)->eq('identifier', strtoupper($identifier))->findOne(); } -- cgit v1.2.3