as php 5.2+ assigns objects by reference, internal data would change

This commit is contained in:
Ralf Becker 2011-04-12 06:13:58 +00:00
parent 6d3776f2ec
commit e9b14d12f0

View File

@ -111,9 +111,9 @@ class infolog_so
elseif ((int) $info != $this->data['info_id']) // already loaded?
{
// dont change our own internal data,
// dont use new as it changes $phpgw->db
$private_info = $this;
$info = $private_info->read($info);
$backup_data = $this->data;
$info = $this->read($info);
$this->data = $backup_data;
}
else
{