Fixed detail/basic view code so this now runs correctly

Added || $subformat == "basic" to if statement that checked for just details view before.