Return default value for disk quota if none set
This commit is contained in:
parent
4c797cf100
commit
065988f703
1 changed files with 1 additions and 1 deletions
|
@ -1032,7 +1032,7 @@ class Application_Model_Preference
|
|||
public static function GetDiskQuota()
|
||||
{
|
||||
$val = self::getValue("disk_quota");
|
||||
return (strlen($val) == 0) ? 0 : $val;
|
||||
return empty($val) ? 2147483648 : $val; # If there is no value for disk quota, return 2GB
|
||||
}
|
||||
|
||||
public static function SetLiveStreamMasterUsername($value)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue