-small fix for uninitialized title values.

This commit is contained in:
mkonecny 2011-02-03 19:22:17 -05:00
parent 4698e963c1
commit ae6b97f8f1
1 changed files with 5 additions and 2 deletions

View File

@ -30,7 +30,7 @@ class Application_Model_Preference
$result = $CC_DBC->GetOne($sql);
if ($result == 0)
return "Airtime";
return "";
else {
$sql = "SELECT valstr FROM cc_pref"
." WHERE keystr = '$key'";
@ -50,7 +50,10 @@ class Application_Model_Preference
$title = Application_Model_Preference::GetValue("station_name");
$defaultNamespace->title = $title;
}
return $title." - Airtime";
if (strlen($title) > 0)
$title .= " - ";
return $title."Airtime";
}
public static function SetHeadTitle($title, $view){