summaryrefslogtreecommitdiff
path: root/app/Model
diff options
context:
space:
mode:
Diffstat (limited to 'app/Model')
-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();
}