fixed sanity check (mysqli_connect is also allowed now)