accesslib: Fix dirty paths checks on PHPv4

$DIRTYPATHS and its derivatives are all arrays. Not objects.

Drop the silly -> notation.
This commit is contained in:
martinlanghoff
2007-09-19 07:25:37 +00:00
parent 41017705c3
commit 3c2dbf376e
+3 -3
View File
@@ -327,7 +327,7 @@ function has_capability($capability, $context=NULL, $userid=NULL, $doanything=tr
// Check basepath only once, when
// we load the dirty contexts...
if (isset($DIRTYCONTEXTS->{$basepath})) {
if (isset($DIRTYCONTEXTS[$basepath])) {
// sitewide change, dirty
$clean = false;
}
@@ -4596,7 +4596,7 @@ function is_contextpath_clean($path, $dirty) {
}
// is _this_ context dirty?
if (isset($dirty->{$path})) {
if (isset($dirty[$path])) {
return false;
}
while (preg_match('!^(/.+)/\d+$!', $path, $matches)) {
@@ -4606,7 +4606,7 @@ function is_contextpath_clean($path, $dirty) {
// assume caller did it already
return true;
}
if (isset($dirty->{$path})) {
if (isset($dirty[$path])) {
return false;
}
}