From a8fb0a6d8821287fac0e06b94122b878e8b28d60 Mon Sep 17 00:00:00 2001 From: Michael Kaufmann Date: Mon, 18 Feb 2019 13:07:58 +0100 Subject: [PATCH] check for non-empty required field 'name' in hosting plans, which are still not fully migrated to API, refs #658 Signed-off-by: Michael Kaufmann --- admin_plans.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/admin_plans.php b/admin_plans.php index 08925e2e..cae7fb93 100644 --- a/admin_plans.php +++ b/admin_plans.php @@ -107,6 +107,10 @@ if ($page == '' || $page == 'overview') { $value_arr = array(); + if (empty($name)) { + \Froxlor\UI\Response::standard_error('stringmustntbeempty', 'name'); + } + $value_arr['diskspace'] = (int)($_POST['diskspace']); if (isset($_POST['diskspace_ul'])) { $value_arr['diskspace'] = - 1;