mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 15:14:58 +00:00
do not use reference to array item, use index
This commit is contained in:
parent
47c2083fe6
commit
af91b6813f
|
@ -80,7 +80,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
|
|||
if($user->isAdmin()) {
|
||||
$data = $document->getTimeline();
|
||||
|
||||
foreach($data as &$item) {
|
||||
foreach($data as $i=>$item) {
|
||||
switch($item['type']) {
|
||||
case 'add_version':
|
||||
$msg = getMLText('timeline_'.$item['type'], array('document'=>htmlspecialchars($item['document']->getName()), 'version'=> $item['version']));
|
||||
|
@ -94,7 +94,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
|
|||
default:
|
||||
$msg = '???';
|
||||
}
|
||||
$item['msg'] = $msg;
|
||||
$data[$i]['msg'] = $msg;
|
||||
}
|
||||
|
||||
foreach($data as $item) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user