My favourite "bug"

Posted by Felix Geisendörfer, on Feb 27, 2007 - in PHP & CakePHP » Other

Hey folks,

here comes an example of my favorite "bug" that drives me insane on occasion:

php
  1. if (!$this->hasField($field));
  2. {
  3.     // Do Something
  4. }

It just got me again and caused me to debug Model::hasField, finally implementing my own version of it until I realized what an idiot I am ... ; ). What's your favourite?

-- Felix Geisendörfer aka the_undefined