dev #38

Merged
lopar merged 22 commits from dev into master 2021-02-03 08:56:49 +00:00
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 // Allows the user to retrieve results using a
// column from the results as a key for the array // column from the results as a key for the array
if ($key != null && $results[0][$key]) { if ($key != null && $results[0][$key]) {
$keyed_results = array(); $keyed_results = (object) array();
foreach ($results as $result) { foreach ($results as $result) {
$keyed_results[$result[$key]] = $result; $keyed_results->$result[$key] = $result;
} }
$results = $keyed_results; $results = $keyed_results;
} }