- $old_conv = dba::fetch_first("SELECT `item-uri`, `reply-to-uri`, `conversation-uri`, `conversation-href`, `protocol`, `source`
- FROM `conversation` WHERE `item-uri` = ?", $conversation['item-uri']);
- if (DBM::is_result($old_conv)) {
+ $fields = ['item-uri', 'reply-to-uri', 'conversation-uri', 'conversation-href', 'protocol', 'source'];
+ $old_conv = DBA::selectFirst('conversation', $fields, ['item-uri' => $conversation['item-uri']]);
+ if (DBA::isResult($old_conv)) {