diff options
| -rw-r--r-- | phpBB/includes/auth.php | 12 | 
1 files changed, 5 insertions, 7 deletions
diff --git a/phpBB/includes/auth.php b/phpBB/includes/auth.php index 22fafd7b7f..4b13c6be7f 100644 --- a/phpBB/includes/auth.php +++ b/phpBB/includes/auth.php @@ -126,15 +126,13 @@ class auth  				while ($subseq = substr($seq, $i, 6))  				{ -					if (isset($seq_cache[$subseq])) +					if (!isset($seq_cache[$subseq]))  					{ -						$this->acl[$f] .= $seq_cache[$subseq]; -					} -					else -					{ -						// We put the original bitstring into the acl array -						$this->acl[$f] .= ($seq_cache[$subseq] = str_pad(base_convert($subseq, 36, 2), 31, 0, STR_PAD_LEFT)); +						$seq_cache[$subseq] = str_pad(base_convert($subseq, 36, 2), 31, 0, STR_PAD_LEFT);  					} + +					// We put the original bitstring into the acl array +					$this->acl[$f] .= $seq_cache[$subseq];  					$i += 6;  				}  			}  | 
