Skip to content

Commit 16ebfda

Browse files
author
Till Brehm
committed
Fixed #4043 3.1 Remote API - client_add: sys_user insert fails if client parameter 'usertheme' is empty
1 parent e743900 commit 16ebfda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/lib/classes/remoting_lib.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ function ispconfig_sysuser_add($params, $insert_id){
284284
$startmodule=$_modules[0];
285285
}
286286
}
287-
$usertheme = $params["usertheme"];
287+
$usertheme = (isset($params["usertheme"]) && $params["usertheme"] != '')?$params["usertheme"]:'default';
288288
$type = 'user';
289289
$active = 1;
290290
$insert_id = $app->functions->intval($insert_id);

0 commit comments

Comments
 (0)