mirror of
https://gitlab.com/CodeSolutionsProject/CodeShare.git
synced 2026-03-19 08:42:05 +01:00
@@ -11,9 +11,10 @@
|
||||
* Methods to get an array to send to twig
|
||||
*/
|
||||
|
||||
function lastToArray($db,&$query,$supported){
|
||||
function lastToArray(&$query,$supported){
|
||||
$last = array();
|
||||
while($var = dbw_fetch_array($db->conn,$query)){
|
||||
$list = $query->fetchAll();
|
||||
foreach($list as $var){
|
||||
$array = array
|
||||
( "idc" => $var["IDC"],
|
||||
"lang" => $var["Lang"],
|
||||
@@ -50,9 +51,9 @@ function allCodeToArray(&$query,$supported){
|
||||
|
||||
}
|
||||
|
||||
function otherImplementationToArray($db,&$query,$supported){
|
||||
function otherImplementationToArray(&$query,$supported){
|
||||
$other = array();
|
||||
while($var = dbw_fetch_array($db->conn,$query)){
|
||||
foreach($query as $var){
|
||||
$array = array
|
||||
( "lang" => $var["Lang"],
|
||||
"version" => $var["Version"],
|
||||
@@ -64,6 +65,6 @@ function otherImplementationToArray($db,&$query,$supported){
|
||||
return $other;
|
||||
}
|
||||
|
||||
function otherVersionToArray($db,$query,$supported){
|
||||
return lastToArray($db,$query,$supported);
|
||||
function otherVersionToArray(&$query,$supported){
|
||||
return lastToArray($query,$supported);
|
||||
}
|
||||
Reference in New Issue
Block a user