Removed each() which is depreciated

pull/224/head
Peter Goodhall 2018-11-27 15:50:50 +00:00
rodzic 62939a44e9
commit 546aafb757
1 zmienionych plików z 7 dodań i 2 usunięć

Wyświetl plik

@ -285,10 +285,13 @@ class API_Model extends CI_Model {
{
// Do search/replace on field names, to convert from friendly names
// to MySQL column names
while (list($key, $val) = each($this->_columnName)) {
foreach($this->_columnName as $key => $val) {
$q = str_replace("++".$val['Name']."++", $key, $q);
}
return $q;
}
@ -297,10 +300,12 @@ class API_Model extends CI_Model {
// Do search/replace on field names, to convert from friendly names
// to MySQL column names
$r = array();
while (list($key, $val) = each($q)) {
foreach($q as $key => $val) {
$f = explode('=', $val);
$r[$this->column($f[0])] = $f[1];
}
return $r;
}