[mod] Returning id as int
This commit is contained in:
parent
3902435690
commit
7ceb2aad93
@ -38,7 +38,12 @@ class EmployeeApplication{
|
|||||||
}
|
}
|
||||||
$stmt = null;
|
$stmt = null;
|
||||||
|
|
||||||
return $results;
|
$employeeTypes = array();
|
||||||
|
foreach($results as $row){
|
||||||
|
$employeeTypes[] = array('id' => (int)$row['id'], 'name' => $row['name']);
|
||||||
|
}
|
||||||
|
|
||||||
|
return $employeeTypes;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user