dev #38

Merged
lopar merged 22 commits from dev into master 2021-02-03 08:56:49 +00:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit 03cb5c0c29 - Show all commits

View File

@ -133,9 +133,9 @@ class DBPDO
// Allows the user to retrieve results using a
// column from the results as a key for the array
if ($key != null && $results[0][$key]) {
$keyed_results = array();
$keyed_results = (object) array();
foreach ($results as $result) {
$keyed_results[$result[$key]] = $result;
$keyed_results->$result[$key] = $result;
}
$results = $keyed_results;
}