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
|
@ -162,7 +162,7 @@ function get_profiledata_by_nick($nickname, $uid = 0, $profile = 0)
|
|||
if (remote_user() && count($_SESSION['remote'])) {
|
||||
foreach ($_SESSION['remote'] as $visitor) {
|
||||
if ($visitor['uid'] == $uid) {
|
||||
$r = dba::select('contact', array('profile-id'), array('id' => $visitor['cid']), array('limit' => 1));
|
||||
$r = dba::selectOne('contact', ['profile-id'], ['id' => $visitor['cid']]);
|
||||
if (DBM::is_result($r)) {
|
||||
$profile = $r['profile-id'];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue