1
0
mirror of https://github.com/e107inc/e107.git synced 2025-05-03 18:59:45 +02:00

core model bug fixed

This commit is contained in:
secretr 2009-10-07 10:53:33 +00:00
parent 950a892e44
commit 26c6b5d73f

View File

@ -9,8 +9,8 @@
* e107 Base Model
*
* $Source: /cvs_backup/e107_0.8/e107_handlers/model_class.php,v $
* $Revision: 1.9 $
* $Date: 2009-09-25 20:20:23 $
* $Revision: 1.10 $
* $Date: 2009-10-07 10:53:33 $
* $Author: secretr $
*/
@ -845,7 +845,7 @@ class e_model
{
$this->data_has_changed = true;
}
$this->$data_src = array();
$this->{$data_src} = array();
return $this;
}
@ -853,10 +853,9 @@ class e_model
if(strpos($key,'/'))
{
$keyArr = explode('/', $key);
$data = &$this->$data_src;
$unskey = array_pop($data);
$data = &$this->{$data_src};
$unskey = array_pop($keyArr);
for ($i = 0, $l = count($keyArr); $i < $l; $i++)
{
$k = $keyArr[$i];