Ternary Not Working

I couldn't get this ternary operator to work for me.  It always returned the single label regardless.  Running PHP 5.4.  Perhaps there's something I'm missing, but switching it to an if/else statement seemed to get it working.
Merge pull request #3 from devinsays/patch-2

Fix label ternary