mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 13:38:32 +01:00
MDL-77348 mod_data: Added missing class properties
In PHP 8.2 and later, setting a value to an undeclared class property is deprecated and emits a deprecation notice. So we need to add missing class properties that still need to be declared.
This commit is contained in:
parent
a96114571e
commit
1f78fb2562
@ -65,13 +65,6 @@ class data_portfolio_caller extends portfolio_module_caller_base {
|
||||
*/
|
||||
public function __construct($callbackargs) {
|
||||
parent::__construct($callbackargs);
|
||||
// set up the list of fields to export
|
||||
$this->selectedfields = array();
|
||||
foreach ($callbackargs as $key => $value) {
|
||||
if (strpos($key, 'field_') === 0) {
|
||||
$this->selectedfields[] = substr($key, 6);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user