diff options
author | Paul Arthur <paul.arthur@flowerysong.com> | 2013-02-11 16:33:58 -0500 |
---|---|---|
committer | Paul Arthur <paul.arthur@flowerysong.com> | 2013-02-11 17:23:35 -0500 |
commit | f29e416e0499f98e556f3268ae94f58c02024d06 (patch) | |
tree | e0aa490618a1746105acb4cfa0f593d1617e3bb5 | |
parent | f447075a6a9414c0bbd553abbc2dc509a9764797 (diff) | |
download | ampache-f29e416e0499f98e556f3268ae94f58c02024d06.tar.gz ampache-f29e416e0499f98e556f3268ae94f58c02024d06.tar.bz2 ampache-f29e416e0499f98e556f3268ae94f58c02024d06.zip |
Fix setting ACLs
_verify_range should be static.
-rw-r--r-- | lib/class/access.class.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/class/access.class.php b/lib/class/access.class.php index 6ddb3e00..c2cd2e07 100644 --- a/lib/class/access.class.php +++ b/lib/class/access.class.php @@ -93,7 +93,7 @@ class Access { * * This outputs an error if the IP range is bad. */ - private function _verify_range($startp, $endp) { + private static function _verify_range($startp, $endp) { $startn = @inet_pton($startp); $endn = @inet_pton($endp); @@ -121,7 +121,7 @@ class Access { * access list entry. */ public function update($data) { - if (!$this->_verify_range($data['start'], $data['end'])) { + if (!self::_verify_range($data['start'], $data['end'])) { return false; } @@ -148,7 +148,7 @@ class Access { * new ACL entry */ public static function create($data) { - if (!$this->_verify_range($data['start'], $data['end'])) { + if (!self::_verify_range($data['start'], $data['end'])) { return false; } |