mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
Preserve the data before read operation and restore it again after
This commit is contained in:
parent
bfe0cb3490
commit
3e87f3c5b8
@ -795,7 +795,12 @@ class timesheet_bo extends so_sql_cf
|
||||
{
|
||||
if (!is_array($entry))
|
||||
{
|
||||
// need to preserve the $this->data
|
||||
$backup =& $this->data;
|
||||
unset($this->data);
|
||||
$entry = $this->read( $entry,false,false);
|
||||
// restore the data again
|
||||
$this->data =& $backup;
|
||||
}
|
||||
if (!$entry)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user