Return default value for disk quota if none set

This commit is contained in:
Duncan Sommerville 2015-06-23 19:08:49 -04:00
parent 4c797cf100
commit 065988f703

View file

@ -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)