Skip to content

Commit

Permalink
Fixed a bug where you cannot log in with PHP 8.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mystralkk committed Dec 19, 2020
1 parent 8baf12f commit 2715c88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/lib-security.php
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,7 @@ function SEC_authenticate($username, $password, &$uid)
$tmp = DB_error();
$nrows = DB_numRows($result);

if (($tmp == 0) && ($nrows == 1)) {
if (empty($tmp) && ($nrows == 1)) {
$U = DB_fetchArray($result);
$uid = (int) $U['uid'];

Expand Down

0 comments on commit 2715c88

Please sign in to comment.