mirror of
https://github.com/delight-im/PHP-Auth.git
synced 2025-08-24 08:32:59 +02:00
Move unaffected code outside of try/catch statement
This commit is contained in:
14
src/Auth.php
14
src/Auth.php
@@ -1168,17 +1168,17 @@ final class Auth extends UserManager {
|
||||
\time()
|
||||
]
|
||||
);
|
||||
|
||||
if (!empty($requests)) {
|
||||
return $requests;
|
||||
}
|
||||
else {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
catch (Error $e) {
|
||||
throw new DatabaseError($e->getMessage());
|
||||
}
|
||||
|
||||
if (!empty($requests)) {
|
||||
return $requests;
|
||||
}
|
||||
else {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user