mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-11 01:24:27 +02: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
|
@ -406,7 +406,7 @@ class Probe
|
|||
|
||||
$condition = array('nurl' => normalise_link($data["url"]));
|
||||
|
||||
$old_fields = dba::select('gcontact', $fieldnames, $condition, array('limit' => 1));
|
||||
$old_fields = dba::selectOne('gcontact', $fieldnames, $condition);
|
||||
|
||||
dba::update('gcontact', $fields, $condition, $old_fields);
|
||||
|
||||
|
@ -439,7 +439,7 @@ class Probe
|
|||
|
||||
$condition = array('nurl' => normalise_link($data["url"]), 'self' => false, 'uid' => 0);
|
||||
|
||||
$old_fields = dba::select('contact', $fieldnames, $condition, array('limit' => 1));
|
||||
$old_fields = dba::selectOne('contact', $fieldnames, $condition);
|
||||
|
||||
dba::update('contact', $fields, $condition, $old_fields);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue