diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/contact_selectors.php | 4 | ||||
-rw-r--r-- | include/user.php | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/contact_selectors.php b/include/contact_selectors.php index 4b3ca987a..76d005305 100644 --- a/include/contact_selectors.php +++ b/include/contact_selectors.php @@ -9,13 +9,13 @@ function contact_profile_assign($current,$foreign_net) { $o .= "<select id=\"contact-profile-selector\" $disabled name=\"profile-assign\" />\r\n"; - $r = q("SELECT `id`, `profile-name` FROM `profile` WHERE `uid` = %d", + $r = q("SELECT `id`, `profile_name` FROM `profile` WHERE `uid` = %d", intval($_SESSION['uid'])); if(count($r)) { foreach($r as $rr) { $selected = (($rr['id'] == $current) ? " selected=\"selected\" " : ""); - $o .= "<option value=\"{$rr['id']}\" $selected >{$rr['profile-name']}</option>\r\n"; + $o .= "<option value=\"{$rr['id']}\" $selected >{$rr['profile_name']}</option>\r\n"; } } $o .= "</select>\r\n"; diff --git a/include/user.php b/include/user.php index 1b497a06e..502384261 100644 --- a/include/user.php +++ b/include/user.php @@ -213,7 +213,7 @@ function create_user($arr) { } if(x($newuid) !== false) { - $r = q("INSERT INTO `profile` ( `uid`, `profile-name`, `is-default`, `name`, `photo`, `thumb`, `publish`, `net-publish` ) + $r = q("INSERT INTO `profile` ( `uid`, `profile_name`, `is-default`, `name`, `photo`, `thumb`, `publish`, `net-publish` ) VALUES ( %d, '%s', %d, '%s', '%s', '%s', %d, %d ) ", intval($newuid), t('default'), |