mirror of
https://github.com/e107inc/e107.git
synced 2025-04-21 13:11:52 +02:00
Issue #3668 PHP 7.3 compatibility fix.
This commit is contained in:
parent
bc520274cb
commit
f128b13824
@ -141,7 +141,7 @@ e107::coreLan('userclass2', true);
|
||||
return e107::getSingleton('user_class_admin');
|
||||
}
|
||||
|
||||
public function beforeCreate($new_data)
|
||||
public function beforeCreate($new_data, $old_data)
|
||||
{
|
||||
return $new_data;
|
||||
}
|
||||
@ -157,7 +157,6 @@ e107::coreLan('userclass2', true);
|
||||
public function beforeUpdate($new_data, $old_data, $id)
|
||||
{
|
||||
|
||||
|
||||
if(!empty($new_data['perms']))
|
||||
{
|
||||
$new_data['userclass_perms'] = implode(".",$new_data['perms']);
|
||||
@ -173,7 +172,7 @@ e107::coreLan('userclass2', true);
|
||||
e107::getUserClass()->clearCache();
|
||||
}
|
||||
|
||||
public function afterDelete($data,$id)
|
||||
public function afterDelete($data,$id, $check = false)
|
||||
{
|
||||
e107::getUserClass()->clearCache();
|
||||
}
|
||||
|
@ -1486,8 +1486,8 @@ class user_class_admin extends user_class
|
||||
*/
|
||||
protected function show_graphical_subtree($listnum, $indent_images, $is_last = FALSE)
|
||||
{
|
||||
|
||||
$num_children = count(vartrue($this->class_tree[$listnum]['class_children']));
|
||||
$tree = vartrue($this->class_tree[$listnum]['class_children'], array());
|
||||
$num_children = count($tree);
|
||||
$is_open = TRUE;
|
||||
$tag_name = 'uclass_tree_'.$listnum;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user