diff options
author | kondou <kondou@ts.unde.re> | 2013-04-17 15:32:03 +0200 |
---|---|---|
committer | kondou <kondou@ts.unde.re> | 2013-07-21 13:55:25 +0200 |
commit | 05084e03a08206b736abd04522e10c97cd3f2fc3 (patch) | |
tree | 1352f5011a523db520ee0e899db8426ecc3fc68f /settings/ajax/setlanguage.php | |
parent | 94fcbc736e3500e0107d8e4f1ce5a2133fcdd8d8 (diff) | |
download | nextcloud-server-05084e03a08206b736abd04522e10c97cd3f2fc3.tar.gz nextcloud-server-05084e03a08206b736abd04522e10c97cd3f2fc3.zip |
Use !== and === in settings.
Diffstat (limited to 'settings/ajax/setlanguage.php')
-rw-r--r-- | settings/ajax/setlanguage.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/settings/ajax/setlanguage.php b/settings/ajax/setlanguage.php index aebb1b31b6f..94773f3dc70 100644 --- a/settings/ajax/setlanguage.php +++ b/settings/ajax/setlanguage.php @@ -10,7 +10,7 @@ OCP\JSON::callCheck(); if( isset( $_POST['lang'] ) ) { $languageCodes=OC_L10N::findAvailableLanguages(); $lang=$_POST['lang']; - if(array_search($lang, $languageCodes) or $lang=='en') { + if(array_search($lang, $languageCodes) or $lang === 'en') { OC_Preferences::setValue( OC_User::getUser(), 'core', 'lang', $lang ); OC_JSON::success(array("data" => array( "message" => $l->t("Language changed") ))); }else{ |