1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-17 20:01:47 +02:00

Code cleanup

This commit is contained in:
Cameron
2015-04-01 23:01:04 -07:00
parent bacee553bc
commit b7e6837e34
5 changed files with 37 additions and 27 deletions

View File

@@ -24,20 +24,13 @@ require_once(e_ADMIN."auth.php");
$frm = e107::getForm();
$mes = e107::getMessage();
if (isset($_POST['update_menu']))
if(!empty($_POST['update_menu']))
{
$temp = array();
while (list($key, $value) = each($_POST))
{
if ($value != LAN_UPDATE) // ???
{
$temp[$key] = $value;
}
}
if ($admin_log->logArrayDiffs($temp,$pref,'MISC_06'))
{
save_prefs();
}
$cfg = e107::getConfig();
$cfg->set('blogcal_mpr', intval($_POST['blogcal_mpr']));
$cfg->set('blogcal_padding', intval($_POST['blogcal_padding']));
$cfg->save(true,true,true);
}
$ns->tablerender($caption, $mes->render() . $text);