Index: panels_page/panels_page.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/panels/panels_page/Attic/panels_page.module,v
retrieving revision 1.1.2.62
diff -u -p -r1.1.2.62 panels_page.module
--- panels_page/panels_page.module	14 Jul 2008 05:10:16 -0000	1.1.2.62
+++ panels_page/panels_page.module	14 Jul 2008 11:39:18 -0000
@@ -790,8 +790,11 @@ function panels_page_view_page($panel_pa
     return drupal_not_found();
   }
 
-  if (!$display->hide_title) {
-    drupal_set_title(filter_xss_admin(panels_page_get_title($panel_page, 'page', '')));
+  if (!$display->hide_title && $title = filter_xss_admin(panels_page_get_title($panel_page, 'page', ''))) {
+    drupal_set_title($title);
+  }
+  else {
+    drupal_set_title('');
   }
 
   if ($panel_page->css) {
Index: tests/panels_page.title.html
===================================================================
RCS file: tests/panels_page.title.html
diff -N tests/panels_page.title.html
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tests/panels_page.title.html	14 Jul 2008 12:26:23 -0000
@@ -0,0 +1,77 @@
+<html>
+<head>
+<title>Panels page title test plan</title>
+<style type="text/css">
+<!--
+body { width: 60em; margin: 1em auto 4em; font: 11px Verdana,Tahoma,Arial,Helvetica; }
+li { margin-bottom: 0.5em; }
+li li { margin-top: 0.3em; margin-bottom: 0; }
+-->
+</style>
+</head>
+<body>
+<h1>Panels page title test plan</h1>
+<p>Note: This is just a stub test for manual testing; a reminder for later SimpleTest integration.</p>
+<ol>
+<li>Created a panel for path <code>node/%</code> and added the "Node ID" argument to contexts, enabled the Panel for all content-types, enabled "Use different default display", and enabled an "own display" for two of those content-types.</li>
+<li>Set up the following title configuration:
+	<ul>
+	<li>Settings title: <code>"Panel title"</code></li>
+	<li>Layout settings title in tab <code>"Default": "Default display title"</code></li>
+	<li>Layout settings title in tab <code>"Node ID 1 Default": "Default argument display title"</code></li>
+	<li>Layout settings title in tab <code>"Node ID 1 Type1": "Type1 argument display title"</code></li>
+	<li>Layout settings title in tab <code>"Node ID 1 Type2": "Type2 argument display title"</code></li>
+	<li>Context settings title for argument <code>"Node ID": "Context title"</code></li>
+	</ul>
+</li>
+<li>Created <code>node/1</code> of content-type Type1; <code>node/2</code> of content-type Type2.</li>
+<li>Visited <code>node/1</code> and <code>"Context title"</code> was displayed as page title.</li>
+<li>Visited <code>node/2</code> and <code>"Context title"</code> was displayed as page title.</li>
+<li>Enabled "hide title" option in layout settings for "Node ID 1 Type1".<br />
+	Visited <code>node/1</code> and no page title was displayed.<br />
+	Disabled "hide title" option in layout settings for "Node ID 1 Type1".
+</li>
+<li>Removed/blanked out context settings title for argument "Node ID".<br />
+	Visited <code>node/1</code> and <code>"Type1 argument display title"</code> was displayed.<br />
+	Visited <code>node/2</code> and <code>"Type2 argument display title"</code> was displayed.
+</li>
+<li>Enabled "hide title" option in layout settings for "Node ID 1 Type1".<br />
+	Visited <code>node/1</code> and no page title was displayed.<br />
+	Disabled "hide title" option in layout settings for "Node ID 1 Type1".
+</li>
+<li>Enabled "hide title" option in layout settings for "Node ID 1 Type2".<br />
+	Visited <code>node/2</code> and no page title was displayed.<br />
+	Disabled "hide title" option in layout settings for "Node ID 1 Type2".
+</li>
+<li>Removed/blanked out layout settings title in tab "Node ID 1 Type1".<br />
+	Visited <code>node/1</code> and <code>"Panel title"</code> was displayed.
+</li>
+<li>Enabled "hide title" option in layout settings for "Node ID 1 Type1".<br />
+	Visited <code>node/1</code> and no page title was displayed.<br />
+	Disabled "hide title" option in layout settings for "Node ID 1 Type1".
+</li>
+<li>Created <code>node/3</code> of an unrelated content-type.<br />
+	Visited <code>node/3</code> and <code>"Default argument display title"</code> was displayed.
+</li>
+<li>Enabled "hide title" option in layout settings for "Node ID 1 Default".<br />
+	Visited <code>node/3</code> and no page title was displayed.<br />
+	Disabled "hide title" option in layout settings for "Node ID 1 Default".
+</li>
+<li>Changed the panel path from <code>node/%</code> to <code>node</code>.<br />
+	Visited <code>node</code> and <code>"Default display title"</code> was displayed.
+</li>
+<li>Enabled "hide title" option in layout settings in tab "Default".<br />
+	Visited <code>node</code> and no page title was displayed.<br />
+	Disabled "hide title" option in layout settings in tab "Default".
+</li>
+<li>Removed/blanked out layout settings title in tab "Default".<br />
+	Visited <code>node</code> and <code>"Panel title"</code> was displayed.
+</li>
+<li>Enabled "hide title" option in layout settings in tab "Default".<br />
+	Visited <code>node</code> and no page title was displayed.<br />
+	Disabled "hide title" option in layout settings in tab "Default".
+</li>
+</ol>
+<p>See also: <a href="http://drupal.org/node/268318#comment-899534">original issue / test plan on drupal.org</a></p>
+</body>
+</html>
