Remove references to deprecated profile.is-default and profile.profile-name fields
This commit is contained in:
parent
d9f7556b4a
commit
18cfd8dfaa
16 changed files with 28 additions and 46 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue