diff --git a/apps/user_ldap/lib/Access.php b/apps/user_ldap/lib/Access.php
index d58106707efa91967056e5185eeb8f8040beaaf5..671f74825ba223da77d1741a8ff773a0f1f390cc 100644
--- a/apps/user_ldap/lib/Access.php
+++ b/apps/user_ldap/lib/Access.php
@@ -2051,8 +2051,7 @@ class Access extends LDAPUtility {
 				$this->search($filter, $base, $attr, $limit, $reOffset, true);
 				if (!$this->hasMoreResults()) {
 					// when the cookie is reset with != 0 offset, there are no further
-					// results, so stop. This if block is not necessary with new API
-					// and can be removed with dropping PHP 7.2
+					// results, so stop.
 					return false;
 				}
 			}