Skip to content

Commit

Permalink
Lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
skarya22 committed Nov 18, 2024
1 parent bdea17c commit f42c658
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions php/libraries/NDB_BVL_Instrument.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -858,6 +858,13 @@ abstract class NDB_BVL_Instrument extends NDB_Page
}
$newData = array_merge($oldData ?? [], $values);

$DB->insertOnDuplicateUpdate(
"flag_editors",
[
'UserID' => $newData['UserID'],
'CommentID' => $this->getCommentID()
],
);
// If there's already a row with the same data, re-use the DataID.
// Otherwise, insert it, then update the DataID on flag.
$jsonencoded = json_encode($newData);
Expand Down

0 comments on commit f42c658

Please sign in to comment.