mirror of
https://github.com/Vateron-Media/XC_VM.git
synced 2026-10-24 04:03:11 +02:00
fix: Redis null-safety guards
- ConnectionTracker: null checks for RedisManager::instance() - UsersCronJob: safe array access for getConnections() - table.php: null coalesce for rFailsPS + Redis fallback
This commit is contained in:
@@ -218,7 +218,9 @@ class UsersCronJob implements CommandInterface {
|
||||
if (SettingsManager::getAll()['redis_handler']) {
|
||||
$rRedisDelete = array('line' => array(), 'server' => array(), 'server_lines' => array(), 'proxy' => array(), 'stream' => array(), 'uuid' => array(), 'count' => 0);
|
||||
$rUsers = array();
|
||||
list($rKeys, $rConnections) = ConnectionTracker::getConnections();
|
||||
$rResult = ConnectionTracker::getConnections();
|
||||
$rKeys = $rResult[0] ?? [];
|
||||
$rConnections = $rResult[1] ?? [];
|
||||
$i = 0;
|
||||
|
||||
for ($rSize = count($rConnections); $i < $rSize; $i++) {
|
||||
|
||||
Reference in New Issue
Block a user