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 <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2019-02-18 13:07:58 +01:00
parent 8d628daf83
commit a8fb0a6d88

View File

@@ -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;