mirror of
https://github.com/friendica/friendica
synced 2025-04-28 17:44:22 +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
|
@ -39,7 +39,7 @@ class Expire {
|
|||
}
|
||||
return;
|
||||
} elseif (intval($param) > 0) {
|
||||
$user = dba::select('user', array('uid', 'username', 'expire'), array('uid' => $param), array('limit' => 1));
|
||||
$user = dba::selectOne('user', ['uid', 'username', 'expire'], ['uid' => $param]);
|
||||
if (DBM::is_result($user)) {
|
||||
logger('Expire items for user '.$user['uid'].' ('.$user['username'].') - interval: '.$user['expire'], LOGGER_DEBUG);
|
||||
item_expire($user['uid'], $user['expire']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue