mirror of
https://github.com/friendica/friendica
synced 2024-11-10 07:02:54 +00:00
Use dba::select() instead of dba::p() in api_get_user
This commit is contained in:
parent
3e9bc61bbf
commit
35c4a7940a
1 changed files with 1 additions and 5 deletions
|
@ -782,11 +782,7 @@ function api_get_user(App $a, $contact_id = null)
|
|||
|
||||
// If this is a local user and it uses Frio, we can get its color preferences.
|
||||
if ($ret['self']) {
|
||||
$r = dba::p(
|
||||
"select theme from user where uid = ? limit 1",
|
||||
$ret['uid']
|
||||
);
|
||||
$theme_info = $r->fetch();
|
||||
$theme_info = dba::select('user', ['theme'], ['uid' => $ret['uid']], ['limit' => 1]);
|
||||
if ($theme_info['theme'] === 'frio') {
|
||||
$schema = PConfig::get($ret['uid'], 'frio', 'schema');
|
||||
if (($schema) && ($schema != '---')) {
|
||||
|
|
Loading…
Reference in a new issue