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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user