Replace dba::select(limit => 1) by dba::selectOne
- Convert array declarations to new style
This commit is contained in:
parent
a2d3cee006
commit
da60893590
51 changed files with 206 additions and 219 deletions
|
@ -108,7 +108,7 @@ if (!$a->is_backend()) {
|
|||
*/
|
||||
if (x($_SESSION, 'authenticated') && !x($_SESSION, 'language')) {
|
||||
// we didn't loaded user data yet, but we need user language
|
||||
$r = dba::select('user', array('language'), array('uid' => $_SESSION['uid']), array('limit' => 1));
|
||||
$r = dba::selectOne('user', ['language'], ['uid' => $_SESSION['uid']]);
|
||||
$_SESSION['language'] = $lang;
|
||||
if (DBM::is_result($r)) {
|
||||
$_SESSION['language'] = $r['language'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue