2
0
forked from Wavyzz/dolibarr

Fix uninitialized var

[php:error] [pid 9969] [client 172.18.0.2:60266] PHP Fatal error:  Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /var/www/html/admin/oauth.php:153\nStack trace:\n#0 {main}\n  thrown in /var/www/html/admin/oauth.php on line 153, referer: https://erp.hype-assets.eu/admin/oauthlogintokens.php
This commit is contained in:
Florent Poinsaut
2022-11-15 14:38:42 +01:00
committed by GitHub
parent 1c287297c0
commit 17b541ab5e

View File

@@ -210,7 +210,7 @@ print dol_get_fiche_end();
print '</form>';
$listinsetup = [];
// Define $listinsetup
foreach ($conf->global as $key => $val) {
if (!empty($val) && preg_match('/^OAUTH_.*_ID$/', $key)) {