diff --git a/nntmux/Users.php b/nntmux/Users.php index 41a37d08c..e336a0598 100755 --- a/nntmux/Users.php +++ b/nntmux/Users.php @@ -590,7 +590,7 @@ class Users /** * @param $id * - * @return mixed + * @return array|bool */ public function getById($id) { @@ -599,6 +599,10 @@ class Users $result = $this->pdo->query($sql, true, NN_CACHE_EXPIRY_MEDIUM); + if (empty($result)) { + return false; + } + return $result[0]; }