From 4d3eac786f43d9e08fde57e15f8296b5949105fe Mon Sep 17 00:00:00 2001 From: Leo Fajardo Date: Sun, 31 Dec 2023 20:28:16 +0800 Subject: [PATCH] [garbage-collector] Fixed a wrong variable usage in the users cleanup logic. (#681) --- includes/class-fs-garbage-collector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-fs-garbage-collector.php b/includes/class-fs-garbage-collector.php index ad7f451e..1d40d821 100755 --- a/includes/class-fs-garbage-collector.php +++ b/includes/class-fs-garbage-collector.php @@ -281,7 +281,7 @@ function clean() { $has_updated_option = false; foreach ( $users as $user_id => $user ) { - if ( ! isset( $user_has_install[ $user_id ] ) ) { + if ( ! isset( $user_has_install_map[ $user_id ] ) ) { unset( $users[ $user_id ] ); foreach( $products_user_id_license_ids_map as $product_id => $user_id_license_ids_map ) {