PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
In the above, I'm confused as to why someone would write an IF block only to make it proceed directly into an ELSEIF. Is this some sort of shortcut that some developers use to act as a "logic catch-all" or was this someone's blunder or laziness?
There's no reasonable explanation, other than the previous developer had code there and subsequently removed it. You should be safe to move the elseif into the if..