1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-16 19:44:09 +02:00

Issue #5079 - PHP 8.2 Deprecated error removal

This commit is contained in:
camer0n
2023-10-26 16:20:22 -07:00
parent 4467ad32b8
commit 552af19c54
4 changed files with 12 additions and 8 deletions

View File

@@ -30,10 +30,10 @@ class e_ranks
$this->imageFolder = is_dir(THEME.'images/ranks') ? THEME_ABS.'images/ranks/' : e_IMAGE_ABS.'ranks/';
$e107 = e107::getInstance();
$ecache = e107::getCache();
$sql = e107::getDb();
//Check to see if we can get it from cache
if($force == false && ($ranks = $e107->ecache->retrieve_sys('nomd5_user_ranks')))
if($force == false && ($ranks = $ecache->retrieve_sys('nomd5_user_ranks')))
{
$this->ranks = e107::unserialize($ranks);
}
@@ -62,7 +62,7 @@ class e_ranks
}
}
}
$e107->ecache->set_sys('nomd5_user_ranks', e107::serialize($this->ranks, false));
$ecache->set_sys('nomd5_user_ranks', e107::serialize($this->ranks, false));
}
// defaults