mirror of
https://github.com/e107inc/e107.git
synced 2025-08-16 11:36:08 +02:00
Issue #3668 PHP 7.3 compatibility fix.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user