Replace dba::select(limit => 1) by dba::selectOne
- Convert array declarations to new style
This commit is contained in:
@@ -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()];
|
||||
|
||||
Reference in New Issue
Block a user