diff --git a/backend/Token.php b/backend/Token.php index 519794d..a087df1 100644 --- a/backend/Token.php +++ b/backend/Token.php @@ -35,6 +35,10 @@ class Token { } public function unhash ($hash) { - return $this->hashids->decode($hash); + $unhashed = $this->hashids->decode($hash); + if (count($unhashed) > 0) { + return $unhashed[0]; + } + return false; } } \ No newline at end of file