aboutsummaryrefslogtreecommitdiffstats
path: root/include/identity.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/identity.php')
-rw-r--r--include/identity.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/identity.php b/include/identity.php
index e4696940c..1e450869a 100644
--- a/include/identity.php
+++ b/include/identity.php
@@ -9,7 +9,7 @@ function create_identity($arr) {
$nick = trim($_POST['nickname']);
$name = escape_tags($_POST['name']);
- if(check_webbie(array($nick)) !== 'nick') {
+ if(check_webbie(array($nick)) !== $nick) {
$ret['message'] = t('Nickname has unsupported characters or is already being used on this site.');
return $ret;
}
@@ -22,7 +22,7 @@ function create_identity($arr) {
$r = q("insert into entity ( entity_account_id, entity_primary,
entity_name, entity_address, entity_global_id, entity_prvkey,
entity_pubkey, entity_pageflags )
- values( %d, %d, '%s', '%s', '%s' '%s', '%s', %d ) ",
+ values ( %d, %d, '%s', '%s', '%s', '%s', '%s', %d ) ",
intval(local_user()),
intval($primary),