Remove references to deprecated profile.is-default and profile.profile-name fields

This commit is contained in:
Hypolite Petovan 2020-01-22 19:34:15 -05:00
commit 18cfd8dfaa
16 changed files with 28 additions and 46 deletions

View file

@ -611,7 +611,7 @@ function settings_post(App $a)
`name` = '%s',
`net-publish` = %d,
`hide-friends` = %d
WHERE `is-default` = 1 AND `uid` = %d",
WHERE `uid` = %d",
intval($publish),
DBA::escape($username),
intval($net_publish),
@ -978,7 +978,7 @@ function settings_content(App $a)
* ACCOUNT SETTINGS
*/
$profile = DBA::selectFirst('profile', [], ['is-default' => true, 'uid' => local_user()]);
$profile = DBA::selectFirst('profile', [], ['uid' => local_user()]);
if (!DBA::isResult($profile)) {
notice(DI::l10n()->t('Unable to find your profile. Please contact your admin.') . EOL);
return;