Fixes wrong conditions usage in Drupal code