1
0
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:
Cameron
2019-02-17 15:37:13 -08:00
parent bc520274cb
commit f128b13824
2 changed files with 4 additions and 5 deletions

View File

@@ -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();
}