1
0
Fork 0

Replace dba::select(limit => 1) by dba::selectOne

- Convert array declarations to new style
This commit is contained in:
Hypolite Petovan 2018-01-09 22:20:33 -05:00
commit da60893590
51 changed files with 206 additions and 219 deletions

View file

@ -44,7 +44,7 @@ function hovercard_content()
$cid = 0;
if (local_user() && strpos($profileurl, 'redir/') === 0) {
$cid = intval(substr($profileurl, 6));
$r = dba::select('contact', array('nurl'), array('id' => $cid), array('limit' => 1));
$r = dba::selectOne('contact', ['nurl'], ['id' => $cid]);
$profileurl = defaults($r, 'nurl', '');
}