mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-10 17:45:18 +02:00
[ticket/10141] Split double-assignment into conditional and unconditional part.
PHPBB3-10141
This commit is contained in:
parent
11dd4b54fa
commit
b1367bce48
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user