Shortened code with if -> ?

This commit is contained in:
Rudi Grinberg 2012-09-11 14:10:13 -04:00
parent 751ed8276d
commit 1304111682
1 changed files with 1 additions and 5 deletions

View File

@ -909,11 +909,7 @@ class Application_Model_Preference
public static function GetDiskQuota()
{
$val = self::getValue("disk_quota");
if (strlen($val) == 0) {
$val = "0";
}
return $val;
return (strlen($val) == 0) ? 0 : $val;
}
public static function SetLiveSteamMasterUsername($value)