1
0
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:
Andreas Fischer 2011-04-22 00:15:05 +02:00
parent 11dd4b54fa
commit b1367bce48

View File

@ -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;
}
}