From c490a00b48964650f57819d1f444045c4b9cd69a Mon Sep 17 00:00:00 2001 From: Julian Arndt Date: Sun, 30 Jul 2023 18:10:15 +0200 Subject: [PATCH] Fix warning in football acp manage team page --- acp/teams_module.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/acp/teams_module.php b/acp/teams_module.php index c04bdc1..8c86f88 100644 --- a/acp/teams_module.php +++ b/acp/teams_module.php @@ -189,7 +189,10 @@ class teams_module foreach( $files as $file ) { - $selected = (strtoupper($file) == strtoupper($team_row['team_symbol'])) ? ' selected="selected"' : ''; + $selected = ''; + if (isset($team_row) && is_array($team_row)) { + $selected = (strtoupper($file) == strtoupper($team_row['team_symbol'])) ? ' selected="selected"' : ''; + } $teamsymbol_options .= ''; } closedir($directory);