Portál AbcLinuxu, 6. května 2025 00:12
tak jsem nasel:
Pokud neexistuji zalozni kody (novy uzivatel) je v logu:
[23-Nov-2022 11:15:32 UTC] PHP Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /opt/www/roundcubemail-1.5.3/plugins/twofactor_gauthenticator/twofactor_gauthenticator.php:403
Vyresil jsem (nevim jestli dobre, ale funguje):
// recovery codes if(!empty($data['recovery_codes'])) {
$remaining_recovery_codes = count($data['recovery_codes']);
} else {
$remaining_recovery_codes = 0;
}
A dekuji za rychlo reakci
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.