diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/identity.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/identity.php b/include/identity.php index d6b6735f6..e26d2b29f 100644 --- a/include/identity.php +++ b/include/identity.php @@ -84,7 +84,13 @@ function create_identity($arr) { if (!$ret['success']) { return $ret; } + $nick = mb_strtolower(trim($arr['nickname'])); + if(! $nick) { + $ret['message'] = t('Nickname is required.'); + return $ret; + } + $name = escape_tags($arr['name']); $pageflags = ((x($arr,'pageflags')) ? intval($arr['pageflags']) : PAGE_NORMAL); |