mirror of
https://github.com/friendica/friendica
synced 2025-04-27 15:50:12 +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
|
@ -57,9 +57,8 @@ class OEmbed
|
|||
|
||||
$a = get_app();
|
||||
|
||||
$condition = array('url' => normalise_link($embedurl));
|
||||
$r = dba::select('oembed', array('content'), $condition, array('limit' => 1));
|
||||
|
||||
$condition = ['url' => normalise_link($embedurl)];
|
||||
$r = dba::selectOne('oembed', ['content'], $condition);
|
||||
if (DBM::is_result($r)) {
|
||||
$txt = $r["content"];
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue