From f0e299a97a8c46fd66bbc47e5b84d4b76d763154 Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 24 Aug 2012 01:57:36 -0700 Subject: begin debug zentity --- include/identity.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/identity.php') 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), -- cgit v1.2.3