mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 20:00:37 +02:00
core model bug fixed
This commit is contained in:
@@ -9,8 +9,8 @@
|
|||||||
* e107 Base Model
|
* e107 Base Model
|
||||||
*
|
*
|
||||||
* $Source: /cvs_backup/e107_0.8/e107_handlers/model_class.php,v $
|
* $Source: /cvs_backup/e107_0.8/e107_handlers/model_class.php,v $
|
||||||
* $Revision: 1.9 $
|
* $Revision: 1.10 $
|
||||||
* $Date: 2009-09-25 20:20:23 $
|
* $Date: 2009-10-07 10:53:33 $
|
||||||
* $Author: secretr $
|
* $Author: secretr $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -845,7 +845,7 @@ class e_model
|
|||||||
{
|
{
|
||||||
$this->data_has_changed = true;
|
$this->data_has_changed = true;
|
||||||
}
|
}
|
||||||
$this->$data_src = array();
|
$this->{$data_src} = array();
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -853,10 +853,9 @@ class e_model
|
|||||||
if(strpos($key,'/'))
|
if(strpos($key,'/'))
|
||||||
{
|
{
|
||||||
$keyArr = explode('/', $key);
|
$keyArr = explode('/', $key);
|
||||||
$data = &$this->$data_src;
|
$data = &$this->{$data_src};
|
||||||
|
|
||||||
$unskey = array_pop($data);
|
|
||||||
|
|
||||||
|
$unskey = array_pop($keyArr);
|
||||||
for ($i = 0, $l = count($keyArr); $i < $l; $i++)
|
for ($i = 0, $l = count($keyArr); $i < $l; $i++)
|
||||||
{
|
{
|
||||||
$k = $keyArr[$i];
|
$k = $keyArr[$i];
|
||||||
|
Reference in New Issue
Block a user