From eac29badb2fade43dfe3fd6373ffc675858143dd Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 30 Aug 2012 18:17:38 -0700 Subject: start on contacts/profiles --- mod/regmod.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mod/regmod.php') diff --git a/mod/regmod.php b/mod/regmod.php index 21f41eb01..120d21cae 100644 --- a/mod/regmod.php +++ b/mod/regmod.php @@ -28,10 +28,10 @@ function user_allow($hash) { intval($register[0]['uid']) ); - $r = q("SELECT * FROM `profile` WHERE `uid` = %d AND `is-default` = 1", + $r = q("SELECT * FROM `profile` WHERE `uid` = %d AND `is_default` = 1", intval($user[0]['uid']) ); - if(count($r) && $r[0]['net-publish']) { + if(count($r) && $r[0]['publish']) { $url = $a->get_baseurl() . '/profile/' . $user[0]['nickname']; if($url && strlen(get_config('system','directory_submit_url'))) proc_run('php',"include/directory.php","$url"); -- cgit v1.2.3