### Eclipse Workspace Patch 1.0 Index: sites/all/modules/ipAuthenticator/ipauth.module =================================================================== --- sites/all/modules/ipAuthenticator/ipauth.module (revision 1018) +++ sites/all/modules/ipAuthenticator/ipauth.module (working copy) @@ -384,7 +384,7 @@ * @return $result - a database result set. */ function ipauth_get_ip_authenticators($ip = "", $return_fields = "roles") { - $sql_where_clause = ("ALL" == $ip || "all" == $ip || "*" == $ip || "" == $ip) ? "1" : "(ip1 = '%s') OR (ip1 <= '%s' AND ip2 >= '%s')"; + $sql_where_clause = ("ALL" == $ip || "all" == $ip || "*" == $ip || "" == $ip) ? "1=1" : "(ip1 = '%s') OR (ip1 <= '%s' AND ip2 >= '%s')"; $sql = "SELECT ". $return_fields .", id FROM {ip_authenticator} WHERE ". $sql_where_clause; // use the php functions and not the mysql function INET_ATON and INET_NTOA functions. This will provide greater database functionality.