Changed GetDiskUsage so it will always return 0 if the value has not been set yet
This commit is contained in:
parent
094382c766
commit
16fb9d75d3
1 changed files with 2 additions and 1 deletions
|
@ -1428,7 +1428,8 @@ class Application_Model_Preference
|
||||||
|
|
||||||
public static function getDiskUsage()
|
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)
|
public static function setDiskUsage($value)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue