fix error when strict modes is on.

This commit is contained in:
Isaac Connor 2013-10-17 17:02:17 -04:00
parent 870a59bed4
commit 355c10c3a4
1 changed files with 4 additions and 2 deletions

View File

@ -59,8 +59,10 @@ if ( isset( $_REQUEST['replayMode'] ) )
$replayMode = validHtmlStr($_REQUEST['replayMode']);
if ( isset( $_COOKIE['replayMode']) && preg_match('#^[a-z]+$#', $_COOKIE['replayMode']) )
$replayMode = validHtmlStr($_COOKIE['replayMode']);
else
$replayMode = array_shift( array_keys( $replayModes ) );
else {
$keys = array_keys( $replayModes );
$replayMode = array_shift( $keys );
}
parseSort();
parseFilter( $_REQUEST['filter'] );