mirror of
https://github.com/delight-im/PHP-Auth.git
synced 2025-08-26 01:03:49 +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()
|
\time()
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
if (!empty($requests)) {
|
|
||||||
return $requests;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
catch (Error $e) {
|
catch (Error $e) {
|
||||||
throw new DatabaseError($e->getMessage());
|
throw new DatabaseError($e->getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!empty($requests)) {
|
||||||
|
return $requests;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user