mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-11 17:44:56 +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()) {
|
if($user->isAdmin()) {
|
||||||
$data = $document->getTimeline();
|
$data = $document->getTimeline();
|
||||||
|
|
||||||
foreach($data as &$item) {
|
foreach($data as $i=>$item) {
|
||||||
switch($item['type']) {
|
switch($item['type']) {
|
||||||
case 'add_version':
|
case 'add_version':
|
||||||
$msg = getMLText('timeline_'.$item['type'], array('document'=>htmlspecialchars($item['document']->getName()), 'version'=> $item['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:
|
default:
|
||||||
$msg = '???';
|
$msg = '???';
|
||||||
}
|
}
|
||||||
$item['msg'] = $msg;
|
$data[$i]['msg'] = $msg;
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach($data as $item) {
|
foreach($data as $item) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user