1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-05 15:16:16 +02:00

Minor change to restrict the value of $mode

git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@5492 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Graham Eames 2006-01-23 19:47:19 +00:00
parent cd887d4414
commit 8ba6a53e3a

View File

@ -59,6 +59,8 @@ else
}
}
// Restrict mode input to valid options
$mode = ( in_array($mode, array('add', 'edit', 'save', 'delete')) ) ? $mode : '';
if( $mode != "" )
{