- Feature Articles
-
CodeSOD
- Most Recent Articles
- Building a Line
- Next Month
- Plenty of IDs
- Eventually
- Only Create Me if I Exist
- Death of the Auth-Er
- Get It Now
- Oh, K?
- Error'd
-
Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
So basically if 0 than one color, else another. Honestly this looks to me like something that could make perfect sense in any number of contexts. And the color being the same could just be that at some point someone decided that the colors should not be different after all but wanted to keep the code in there just in case people changed their mind.
Admin
PHP has = for assignments and == for comparisons, right? Two major problems in one line.
Admin
fixed
Admin
It's a powerful signal. It's saying, "no matter what you think about tno, I'm setting bgc to #FFFFFF!" Who knows what sort of hijinx the next programmer might try to pull off if that line weren't in there, keeping everyone in line.