index.php unclosed if fix