mybb / merge-system

The MyBB Merge System allows for easy merging of an existing forum (be it MyBB or another forum software) into a MyBB 1.8.x forum.
Other
32 stars 33 forks source link

Useless check in users module #163

Closed JN-Jones closed 9 years ago

JN-Jones commented 9 years ago
        if($this->old_db->num_rows($query) == 0)
        {
            $output->print_none_left_message();
        }

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.