diff --git a/miniflux/model.php b/miniflux/model.php index a56b590..7fa8e6c 100644 --- a/miniflux/model.php +++ b/miniflux/model.php @@ -167,7 +167,7 @@ function set_item_read($id) } -function flush_unread($id) +function flush_unread() { \PicoTools\singleton('db') ->table('items') @@ -176,7 +176,7 @@ function flush_unread($id) } -function flush_read($id) +function flush_read() { \PicoTools\singleton('db') ->table('items') diff --git a/miniflux/vendor/PicoTools/Crypto.php b/miniflux/vendor/PicoTools/Crypto.php index d873b48..863d39f 100644 --- a/miniflux/vendor/PicoTools/Crypto.php +++ b/miniflux/vendor/PicoTools/Crypto.php @@ -43,7 +43,7 @@ function password_verify($password, $hash) { $ret = crypt($password, $hash); - if (! is_string($ret) || strlen($ret) != strlen($hash) || strlen($ret) <= 13) { + if (! is_string($ret) || strlen($ret) != strlen($hash) || strlen($ret) < 13) { return false; } @@ -69,7 +69,7 @@ function password_hash($password) $ret = crypt($password, $hash); - if (! is_string($ret) || strlen($ret) <= 13) { + if (! is_string($ret) || strlen($ret) < 13) { return false; } @@ -147,4 +147,4 @@ function password_salt($required_salt_len) $salt = str_replace('+', '.', base64_encode($buffer)); return substr($salt, 0, $required_salt_len); -} \ No newline at end of file +}