aboutsummaryrefslogtreecommitdiffstats
path: root/include/identity.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-08-24 01:57:36 -0700
committerfriendica <info@friendica.com>2012-08-24 01:57:36 -0700
commitf0e299a97a8c46fd66bbc47e5b84d4b76d763154 (patch)
treefc7ab7a2fc921e167609bb10dd551b7addc03b24 /include/identity.php
parentb08d070e1531f5a824687a2d36accb288d2ee54a (diff)
downloadvolse-hubzilla-f0e299a97a8c46fd66bbc47e5b84d4b76d763154.tar.gz
volse-hubzilla-f0e299a97a8c46fd66bbc47e5b84d4b76d763154.tar.bz2
volse-hubzilla-f0e299a97a8c46fd66bbc47e5b84d4b76d763154.zip
begin debug zentity
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),