X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fsettings.php;h=6138463593a0f1f6300797a9b313ad56b11c0e49;hb=da60893590a302bf94dfd86f5586f26509160d34;hp=10c57ff8b6e2572a2c77dcfe6bdcc21479b3e71e;hpb=8d07a69bba06f8cb8e63d46edcbb53fea34aa6d1;p=friendica.git diff --git a/mod/settings.php b/mod/settings.php index 10c57ff8b6..6138463593 100644 --- a/mod/settings.php +++ b/mod/settings.php @@ -997,7 +997,7 @@ function settings_content(App $a) require_once('include/acl_selectors.php'); - $profile = dba::select('profile', [], ['is-default' => true, 'uid' => local_user()], ['limit' => 1]); + $profile = dba::selectOne('profile', [], ['is-default' => true, 'uid' => local_user()]); if (!DBM::is_result($profile)) { notice(t('Unable to find your profile. Please contact your admin.') . EOL); return;