Title function modification to fix the title null case

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@44170 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Romain Louis 2007-11-02 03:15:24 +00:00
parent 0ea568672e
commit 42d7fdbb19

View File

@ -130,9 +130,13 @@ HTML;
*/
function Title() {
$title = parent::Title();
return <<<HTML
if( $title ) {
return <<<HTML
<span class="keylabel">$title</span>
HTML;
}
else
return '';
}
}
?>