--- /home/sime/public_html/drupal-6.x-dev/themes/chameleon/chameleon.theme	2007-07-04 04:48:41.000000000 +1000
+++ chameleon.theme	2007-07-27 00:13:40.000000000 +1000
@@ -29,7 +29,16 @@
   $output  = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n";
   $output .= "<html xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"$language\" xml:lang=\"$language\">\n";
   $output .= "<head>\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();
