fix update of hosting plans via interface; fixes #753
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -189,9 +189,7 @@ if ($page == '' || $page == 'overview') {
|
|||||||
if (isset($_POST['send']) && $_POST['send'] == 'send') {
|
if (isset($_POST['send']) && $_POST['send'] == 'send') {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
HostingPlans::getLocal($userinfo, array(
|
HostingPlans::getLocal($userinfo, $_POST)->update();
|
||||||
'id' => $id
|
|
||||||
))->update();
|
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
\Froxlor\UI\Response::dynamic_error($e->getMessage());
|
\Froxlor\UI\Response::dynamic_error($e->getMessage());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user