More index translations [skip ci]

This commit is contained in:
James Cole
2015-05-14 12:10:42 +02:00
parent cc9be13544
commit 038693dc86
5 changed files with 149 additions and 102 deletions

View File

@@ -52,10 +52,12 @@ class PreferencesController extends Controller
{
// front page accounts
$frontPageAccounts = [];
foreach (Input::get('frontPageAccounts') as $id) {
$frontPageAccounts[] = intval($id);
if (is_array(Input::get('frontPageAccounts'))) {
foreach (Input::get('frontPageAccounts') as $id) {
$frontPageAccounts[] = intval($id);
}
Preferences::set('frontPageAccounts', $frontPageAccounts);
}
Preferences::set('frontPageAccounts', $frontPageAccounts);
// view range:
Preferences::set('viewRange', Input::get('viewRange'));