Moves the function "is_result" from dba to dbm.

This commit is contained in:
Michael Vogel 2016-07-02 14:00:42 +02:00
parent 91e20f2f9b
commit e4c6cfd2d8
11 changed files with 30 additions and 40 deletions

View file

@ -126,7 +126,7 @@ if (x($_SESSION,'authenticated') && !x($_SESSION,'language')) {
// we didn't loaded user data yet, but we need user language
$r = q("SELECT language FROM user WHERE uid=%d", intval($_SESSION['uid']));
$_SESSION['language'] = $lang;
if (dba::is_result($r)) $_SESSION['language'] = $r[0]['language'];
if (dbm::is_result($r)) $_SESSION['language'] = $r[0]['language'];
}
if((x($_SESSION,'language')) && ($_SESSION['language'] !== $lang)) {