Commit 4e3cec60 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

🚑 fix(core) Fixing PHP errors from recent changes

issue #5135
parent 6faa2411
......@@ -1893,7 +1893,7 @@ class simplePlugin
return $this->attributesAccess[$field]->getInitialValue();
}
function foreignKeyUpdate ($field, $oldvalue, $newvalue, $source)
function foreignKeyUpdate($field, $oldvalue, $newvalue, array $source)
{
if (!isset($source['MODE'])) {
$source['MODE'] = 'move';
......
......@@ -208,7 +208,7 @@ class ACLsAssignmentAttribute extends DialogOrderedArrayAttribute
return $key.':'.$value['scope'].':'.base64_encode($value['role']).':'.join(',', array_map('base64_encode', $value['members']));
}
function foreignKeyUpdate($oldvalue, $newvalue, $source)
function foreignKeyUpdate($oldvalue, $newvalue, array $source)
{
foreach ($this->value as $key => &$value) {
if ($source['FIELD'] == 'dn') {
......@@ -243,7 +243,7 @@ class ACLsAssignmentAttribute extends DialogOrderedArrayAttribute
unset($value);
}
function foreignKeyCheck($oldvalue, $source)
function foreignKeyCheck($oldvalue, array $source)
{
foreach ($this->value as $value) {
if (
......@@ -354,7 +354,7 @@ class aclAssignment extends simplePlugin
session::global_set('ui', $ui);
}
function foreignKeyUpdate ($field, $oldvalue, $newvalue, $source)
function foreignKeyUpdate($field, $oldvalue, $newvalue, array $source)
{
/* Handle foreign keys only as the main tab so that they are not handled twice */
if ($this->parent->getBaseObject() !== $this) {
......
......@@ -67,7 +67,7 @@ class GroupContentFilterElement extends FilterElement
return $smarty->fetch(get_template_path('management/filter-element.tpl'));
}
public function getFilters($type, &$filters)
public function getFilters($type, array &$filters)
{
if (strtoupper($type) == 'OGROUP') {
foreach ($this->types as $type => $infos) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment