1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-13 10:04:35 +02:00

Fixes #566 - prefs not being saved in some plugins.

This commit is contained in:
Cameron
2014-05-24 15:20:06 -07:00
parent e669dd265a
commit 484f2ca330
5 changed files with 19 additions and 35 deletions

View File

@@ -55,7 +55,7 @@ if(isset($_POST['updateprefs']))
$temp['auth_badpassword'] = intval($_POST['auth_badpassword']);
if ($admin_log->logArrayDiffs($temp, $pref, 'AUTH_01'))
{
save_prefs(); // Only save if changes @TODO:
e107::getConfig('core')->setPref($temp)->save(false);
header('location:'.e_SELF);
exit;
}