From 1304111682842c91aeef7a815d3b42fcf815aac8 Mon Sep 17 00:00:00 2001 From: Rudi Grinberg Date: Tue, 11 Sep 2012 14:10:13 -0400 Subject: [PATCH] Shortened code with if -> ? --- airtime_mvc/application/models/Preference.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/airtime_mvc/application/models/Preference.php b/airtime_mvc/application/models/Preference.php index 44baf5575..b1a723816 100644 --- a/airtime_mvc/application/models/Preference.php +++ b/airtime_mvc/application/models/Preference.php @@ -909,11 +909,7 @@ class Application_Model_Preference public static function GetDiskQuota() { $val = self::getValue("disk_quota"); - if (strlen($val) == 0) { - $val = "0"; - } - - return $val; + return (strlen($val) == 0) ? 0 : $val; } public static function SetLiveSteamMasterUsername($value)