mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00: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
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ if (isset($_GET['avatar']))
|
||||||
$avatar_group = false;
|
$avatar_group = false;
|
||||||
$exit = false;
|
$exit = false;
|
||||||
|
|
||||||
if ($filename[0] === 'g')
|
if (isset($filename[0]) && $filename[0] === 'g')
|
||||||
{
|
{
|
||||||
$avatar_group = true;
|
$avatar_group = true;
|
||||||
$filename = substr($filename, 1);
|
$filename = substr($filename, 1);
|
||||||
|
|
Loading…
Add table
Reference in a new issue