fix 2 warnings about continue 2

This commit is contained in:
Ralf Becker 2020-06-03 13:20:09 +02:00
parent 0825302a54
commit f0a6e34106
2 changed files with 2 additions and 2 deletions

View File

@ -93,7 +93,7 @@ foreach($trs[2] as $n => $tr)
if ($commented) if ($commented)
{ {
echo $tr; echo $tr;
continue; continue 2;
} }
echo "\t\t\t\t\t<!-- ".trim($matches[3])." -->\n"; echo "\t\t\t\t\t<!-- ".trim($matches[3])." -->\n";
} }

View File

@ -71,7 +71,7 @@ foreach($lines as $l => $line)
break; break;
case 'memberUid': case 'memberUid':
$member_dn = 'uid='.$value.','.preg_replace($replace,$replace_with,$dn); $member_dn = 'uid='.$value.','.preg_replace($replace,$replace_with,$dn);
if (!in_array('dn: '.$member_dn,$lines)) continue; // member does not exist --> ignore him! if (!in_array('dn: '.$member_dn,$lines)) continue 2; // member does not exist --> ignore him!
$members[] = 'member: '.$member_dn; $members[] = 'member: '.$member_dn;
// fall-through // fall-through
default: default: