Skip to content

Commit

Permalink
pkp/pkp-lib#10445 Fix broken call to substr
Browse files Browse the repository at this point in the history
  • Loading branch information
asmecher committed Sep 18, 2024
1 parent cdd3c20 commit a5c7b3e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ private function _toJSON($row, $tableName, $searchBy, $valueToConvert)

if (!count($primaryKeys)) {
foreach (array_keys(get_object_vars($row)) as $column) {
if (substr($column, -3, '_id')) {
if (substr($column, -3) == '_id') {
$primaryKeys[] = $column;
}
}
Expand Down

0 comments on commit a5c7b3e

Please sign in to comment.