Shortened code with if -> ?
This commit is contained in:
parent
751ed8276d
commit
1304111682
1 changed files with 1 additions and 5 deletions
|
@ -909,11 +909,7 @@ class Application_Model_Preference
|
||||||
public static function GetDiskQuota()
|
public static function GetDiskQuota()
|
||||||
{
|
{
|
||||||
$val = self::getValue("disk_quota");
|
$val = self::getValue("disk_quota");
|
||||||
if (strlen($val) == 0) {
|
return (strlen($val) == 0) ? 0 : $val;
|
||||||
$val = "0";
|
|
||||||
}
|
|
||||||
|
|
||||||
return $val;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function SetLiveSteamMasterUsername($value)
|
public static function SetLiveSteamMasterUsername($value)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue