fix: only variables should be passed by reference
This commit is contained in:
@@ -25,10 +25,10 @@ class DbHelper
|
|||||||
ORDER BY text;";
|
ORDER BY text;";
|
||||||
|
|
||||||
|
|
||||||
$results = Connection::execute($sql);
|
$results = Connection::execute($sql)->to_array();
|
||||||
|
|
||||||
if($withJeunesse) {
|
if($withJeunesse) {
|
||||||
array_unshift($results->to_array(), array('code' => 'J', 'text' => 'Jeunesse'));
|
array_unshift($results, array('code' => 'J', 'text' => 'Jeunesse'));
|
||||||
}
|
}
|
||||||
|
|
||||||
return $results;
|
return $results;
|
||||||
|
|||||||
Reference in New Issue
Block a user