1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-19 21:02:09 +02:00

various e_model and UI fixes and improvements, fixed e_SIGNUP/LOGIN constants

This commit is contained in:
secretr
2010-12-27 12:38:14 +00:00
parent 0b40d1d839
commit 528325aafd
4 changed files with 99 additions and 19 deletions

View File

@@ -2099,11 +2099,13 @@ class e_front_model extends e_model
}
}
$tp = e107::getParser();
foreach ($data as $field => $dt)
{
// get values form validated array when possible
// we need it because of advanced validation methods e.g. 'compare'
if(isset($valid_data[$field])) $dt = $valid_data[$field];
// FIX - security issue, toDb required
if(isset($valid_data[$field])) $dt = $tp->toDb($valid_data[$field]);
$this->setData($field, $dt, $strict)
->removePostedData($field);
@@ -2433,7 +2435,7 @@ class e_front_model extends e_model
}
return $ret;
}
if(!isset($this->_data_fields[$key]))
{
return null;