Changed GetDiskUsage so it will always return 0 if the value has not been set yet

This commit is contained in:
drigato 2014-05-05 12:25:42 -04:00
parent 094382c766
commit 16fb9d75d3

View file

@ -1428,7 +1428,8 @@ class Application_Model_Preference
public static function getDiskUsage()
{
return self::getValue("disk_usage");
$val = self::getValue("disk_usage");
return (strlen($val) == 0) ? 0 : $val;
}
public static function setDiskUsage($value)