mirror of
https://github.com/phpbb/phpbb.git
synced 2025-01-17 22:28:46 +01:00
[ticket/9694] Make sure string offset 0 exists to avoid E_NOTICE message.
PHPBB3-9694
This commit is contained in:
parent
b7ae0fe4e9
commit
32882fd798
@ -61,7 +61,7 @@ if (isset($_GET['avatar']))
|
||||
$avatar_group = false;
|
||||
$exit = false;
|
||||
|
||||
if ($filename[0] === 'g')
|
||||
if (isset($filename[0]) && $filename[0] === 'g')
|
||||
{
|
||||
$avatar_group = true;
|
||||
$filename = substr($filename, 1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user