mirror of
https://github.com/friendica/friendica
synced 2025-05-08 15:04:10 +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
|
@ -254,7 +254,7 @@ class Feed {
|
|||
if (!$simulate) {
|
||||
$condition = ["`uid` = ? AND `uri` = ? AND `network` IN (?, ?)",
|
||||
$importer["uid"], $item["uri"], NETWORK_FEED, NETWORK_DFRN];
|
||||
$previous = dba::select('item', ['id'], $condition, ['limit' => 1]);
|
||||
$previous = dba::selectOne('item', ['id'], $condition);
|
||||
if (DBM::is_result($previous)) {
|
||||
logger("Item with uri ".$item["uri"]." for user ".$importer["uid"]." already existed under id ".$previous["id"], LOGGER_DEBUG);
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue