Browse files

Mejor seguridad

  • Loading branch information...
1 parent 1e1c33a commit f84c40ca5348f1f8b464b82f321be407a8acfdb8 @joanhey joanhey committed Oct 25, 2012
Showing with 6 additions and 3 deletions.
  1. +6 −3 core/libs/kumbia_active_record/kumbia_active_record.php
View
9 core/libs/kumbia_active_record/kumbia_active_record.php
@@ -277,9 +277,12 @@ function __construct($data=null)
$this->_connect();
if ($data) {
- if (!is_array($data))
- $data = Util::getParams(func_get_args());
- $this->dump_result_self($data);
+ if (!is_array($data)) $data = Util::getParams(func_get_args());
+ foreach($this->fields as $field) {
+ if (isset($data[$field])) {
+ $this->$field = $data[$field];
+ }
+ }
}
}

0 comments on commit f84c40c

Please sign in to comment.