summaryrefslogtreecommitdiff
path: root/app/Model/Project.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-04-19 16:01:41 -0400
committerFrederic Guillot <fred@kanboard.net>2015-04-19 16:01:41 -0400
commitac86c3100a1030026024c33c1cf02ec79f08ff51 (patch)
tree9b19c00122c6e405a01e7144072246cff456fe30 /app/Model/Project.php
parent392133d9ba27cacab18eac2ab8b10beb846a4cca (diff)
Add Mailgun integration (incoming emails)
Diffstat (limited to 'app/Model/Project.php')
-rw-r--r--app/Model/Project.php4
1 files changed, 4 insertions, 0 deletions
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();
}