Netbeans PHP Validation sees endif as a syntax error
- by Asaf
I have this part of code
<?php for ($j=0; $j < $count; $j++): ?>
<?php if(isset(votes[$j])): ?>
<dt>something something</dt>
<dd>
<span><?php echo $result; ?>%</span>
<div class="bar">
</div>
</dd>
<?php else: ?>
<dt>info</dt>
<dd>
<span>0</span>
<div class="bar">
<div style="width: 0px"></div>
</div>
</dd>
<?php endif; ?>
<?php endfor; ?>
now Netbeans insists that on the endif line (near the end) there's a syntax error:
Error Syntax error:
expected: exit, identifier, variable, function...
Is there some sort of known problem with the validation of endif on Netbeans ?