First of all $output isn't defined there and on the other hand the if will never be true as the fetch_total function get's the number of users and we're using a limit on the query which is then checked against the remaining number of users and import is never called when there's no user left.
First of all
$output
isn't defined there and on the other hand theif
will never be true as thefetch_total
function get's the number of users and we're using a limit on the query which is then checked against the remaining number of users andimport
is never called when there's no user left.