do not use pointers for temporary arrays
This commit is contained in:
parent
ee3d1a7089
commit
bb18dba67d
1 changed files with 2 additions and 2 deletions
|
|
@ -84,7 +84,7 @@
|
|||
$character['user'] = $this->Users->getUserById($character['user_id']);
|
||||
$character['characterroles'] = array_map(function($r) { return $r['name']; }, $this->Characterroles->getCharacterrolesForCharacterById($character['id']));
|
||||
$character['characterfields'] = array();
|
||||
foreach($this->Seminarycharacterfields->getFieldsForCharacter($character['id']) as &$value) {
|
||||
foreach($this->Seminarycharacterfields->getFieldsForCharacter($character['id']) as $value) {
|
||||
$character['characterfields'][$value['url']] = $value;
|
||||
}
|
||||
}
|
||||
|
|
@ -399,7 +399,7 @@
|
|||
$character['user'] = $this->Users->getUserById($character['user_id']);
|
||||
$character['characterroles'] = array_map(function($r) { return $r['name']; }, $this->Characterroles->getCharacterrolesForCharacterById($character['id']));
|
||||
$character['characterfields'] = array();
|
||||
foreach($this->Seminarycharacterfields->getFieldsForCharacter($character['id']) as &$value) {
|
||||
foreach($this->Seminarycharacterfields->getFieldsForCharacter($character['id']) as $value) {
|
||||
$character['characterfields'][$value['url']] = $value;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue