CC-3667 : Preferences pages should have an option to enable/disable password recovery option

This commit is contained in:
Naomi Aro 2012-04-25 15:22:38 +02:00
parent 7aeddf5bb0
commit b6bed6ce7a
3 changed files with 14 additions and 5 deletions

View file

@ -794,7 +794,13 @@ class Application_Model_Preference
}
public static function GetEnableSystemEmail() {
return self::GetValue("enable_system_email");
$v = self::GetValue("enable_system_email");
if ($v === "") {
return 0;
}
return $v;
}
public static function SetSystemEmail($value) {