diff options
Diffstat (limited to 'app/Model/Project.php')
-rw-r--r-- | app/Model/Project.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/Model/Project.php b/app/Model/Project.php index 158de295..80e17437 100644 --- a/app/Model/Project.php +++ b/app/Model/Project.php @@ -84,6 +84,10 @@ class Project extends Base */ public function getByToken($token) { + if (empty($token)) { + return false; + } + return $this->db->table(self::TABLE)->eq('token', $token)->eq('is_public', 1)->findOne(); } |