1
0
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:
Andreas Fischer 2010-07-01 23:29:25 +02:00
parent b7ae0fe4e9
commit 32882fd798

View File

@ -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);