Restored compliance with PHP 5.2.4; fixed wrong condition