mirror of
https://github.com/friendica/friendica
synced 2025-04-26 09:10:15 +00:00
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
|
@ -66,7 +66,7 @@ class PortableContact
|
|||
|
||||
if ($cid) {
|
||||
if (!$url || !$uid) {
|
||||
$r = dba::select('contact', ['poco', 'uid'], ['id' => $cid], ['limit' => 1]);
|
||||
$r = dba::selectOne('contact', ['poco', 'uid'], ['id' => $cid]);
|
||||
if (DBM::is_result($r)) {
|
||||
$url = $r['poco'];
|
||||
$uid = $r['uid'];
|
||||
|
@ -813,7 +813,7 @@ class PortableContact
|
|||
return false;
|
||||
}
|
||||
|
||||
$servers = dba::select('gserver', [], ['nurl' => normalise_link($server_url)], ['limit' => 1]);
|
||||
$servers = dba::selectOne('gserver', [], ['nurl' => normalise_link($server_url)]);
|
||||
if (DBM::is_result($servers)) {
|
||||
if ($servers["created"] <= NULL_DATE) {
|
||||
$fields = ['created' => datetime_convert()];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue