Permalink
Browse files

Merge branch 'MDL-29551' of git://github.com/ankitagarwal/moodle into…

… MOODLE_19_STABLE
  • Loading branch information...
2 parents c42cd0d + 3ab2851 commit 6ae95cc856edb36136c6ff62299ab98031339972 @stronk7 stronk7 committed Nov 17, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 mnet/lib.php
View
@@ -412,10 +412,10 @@ function ip_in_range($address, $network, $mask) {
$lnetwork = ip2long($network);
$laddress = ip2long($address);
- $binnet = str_pad( decbin($lnetwork),32,"0","STR_PAD_LEFT" );
+ $binnet = str_pad( decbin($lnetwork), 32, "0", STR_PAD_LEFT );
$firstpart = substr($binnet,0,$mask);
- $binip = str_pad( decbin($laddress),32,"0","STR_PAD_LEFT" );
+ $binip = str_pad( decbin($laddress), 32, "0", STR_PAD_LEFT );
$firstip = substr($binip,0,$mask);
return(strcmp($firstpart,$firstip)==0);
}

0 comments on commit 6ae95cc

Please sign in to comment.