From 8247701182f7e20ff686b6cf29b540424922ed6f Mon Sep 17 00:00:00 2001 From: Cameron Date: Sat, 4 May 2013 02:23:57 -0700 Subject: [PATCH] Work on prefs not saving problem that some people have experienced. --- e107_admin/e107_update.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/e107_admin/e107_update.php b/e107_admin/e107_update.php index 37703636e..c230055d0 100644 --- a/e107_admin/e107_update.php +++ b/e107_admin/e107_update.php @@ -175,6 +175,7 @@ class e107Update if(varset($_POST['update_core']) && is_array($_POST['update_core'])) { + $func = key($_POST['update_core']); $message = $this->updateCore(); } @@ -195,12 +196,12 @@ class e107Update - function updateCore() + function updateCore($func='') { $mes = e107::getMessage(); - foreach($this->core as $func => $data) - { + // foreach($this->core as $func => $data) + // { if(function_exists('update_'.$func)) // Legacy Method. { $installed = call_user_func("update_".$func); @@ -225,7 +226,7 @@ class e107Update } } - } + //} }