Fix warning in football acp manage team page
This commit is contained in:
@@ -189,7 +189,10 @@ class teams_module
|
|||||||
|
|
||||||
foreach( $files as $file )
|
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 .= '<option value="' . $file . '"' . $selected . '>' . $file . '</option>';
|
$teamsymbol_options .= '<option value="' . $file . '"' . $selected . '>' . $file . '</option>';
|
||||||
}
|
}
|
||||||
closedir($directory);
|
closedir($directory);
|
||||||
|
|||||||
Reference in New Issue
Block a user