]> git.mxchange.org Git - friendica.git/blobdiff - mod/settings.php
Replace dba::select(limit => 1) by dba::selectOne
[friendica.git] / mod / settings.php
index 10c57ff8b6e2572a2c77dcfe6bdcc21479b3e71e..6138463593a0f1f6300797a9b313ad56b11c0e49 100644 (file)
@@ -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;