forked from extern/egroupware
should fix Fatal error: Cannot use string offset as an array in line 671
This commit is contained in:
parent
f34afea1c7
commit
f028e6d24e
@ -656,14 +656,13 @@ class timesheet_ui extends timesheet_bo
|
|||||||
$rows = $ids;
|
$rows = $ids;
|
||||||
return $this->total; // no need to set other fields or $readonlys
|
return $this->total; // no need to set other fields or $readonlys
|
||||||
}
|
}
|
||||||
|
$links = array();
|
||||||
$links3 = egw_link::get_links_multiple(TIMESHEET_APP,$ids,true,'projectmanager'); // only check for pm links!
|
$links3 = egw_link::get_links_multiple(TIMESHEET_APP,$ids,true,'projectmanager'); // only check for pm links!
|
||||||
#_debug_array($links);
|
|
||||||
//as the full array is expected, we must supply the missing but needed (since expected further down) information
|
//as the full array is expected, we must supply the missing but needed (since expected further down) information
|
||||||
if (is_array($links3))
|
if (is_array($links3))
|
||||||
{
|
{
|
||||||
foreach ($links3 as $likey => $liarray)
|
foreach ($links3 as $likey => $liarray)
|
||||||
{
|
{
|
||||||
#echo "$likey";_debug_array($liarray);echo"<br>";
|
|
||||||
if (is_array($liarray))
|
if (is_array($liarray))
|
||||||
{
|
{
|
||||||
foreach ($liarray as $li2key => $lival)
|
foreach ($liarray as $li2key => $lival)
|
||||||
@ -673,13 +672,7 @@ class timesheet_ui extends timesheet_bo
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!is_array($links)) $links = array();
|
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
$links = array();
|
|
||||||
}
|
|
||||||
#_debug_array($links);
|
|
||||||
unset($query['col_filter'][0]);
|
unset($query['col_filter'][0]);
|
||||||
|
|
||||||
$readonlys = array();
|
$readonlys = array();
|
||||||
|
Loading…
Reference in New Issue
Block a user