Skip to content

Commit

Permalink
fixed an issue described in #7199
Browse files Browse the repository at this point in the history
  • Loading branch information
sla363 committed May 19, 2024
1 parent e153ce2 commit f38f39e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/Common/Database/QueryUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,8 @@ public static function fetchTableColumn($sqlStatement, $column, $binds = array()
public static function fetchSingleValue($sqlStatement, $column, $binds = array())
{
$records = self::fetchTableColumn($sqlStatement, $column, $binds);
// note if $records[0] is actually the value 0 then the value returned is null...
// do we want that behavior?
if (!empty($records[0])) {
return $records[0];
}
return null;

return $records[0] ?? null;
}

public static function fetchRecords($sqlStatement, $binds = array(), $noLog = false)
Expand Down

0 comments on commit f38f39e

Please sign in to comment.