dev #38
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user