--- chameleon.theme	2009-01-26 19:41:57.000000000 +1100
+++ chameleon.theme.new	2009-01-26 19:43:17.000000000 +1100
@@ -32,7 +32,16 @@
   $output .= "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"$language\" dir=\"$direction\"\n";
   $output .= "  $rdf_namespaces>\n";
   $output .= "<head profile=\"http://ns.inria.fr/grddl/rdfa/\">\n";
-  $output .= " <title>" . ($title ? strip_tags($title) . " | " . variable_get("site_name", "Drupal") : variable_get("site_name", "Drupal") . " | " . variable_get("site_slogan", "")) . "</title>\n";
+  $output .= " <title>";
+  if ($title) {
+    $output .= strip_tags($title) . " | " . variable_get("site_name", "Drupal");
+  } else {
+    $output .= variable_get("site_name", "Drupal");
+    if (variable_get("site_slogan", "")) {
+      $output .= " | ". variable_get("site_slogan", "");
+    }
+  }
+  $output .= "</title>\n";
   $output .= drupal_get_html_head();
   $output .= drupal_get_css();
   $output .= drupal_get_js();
