Project

General

Profile

« Previous | Next » 

Revision e37eeb49

Added by Jim Pingle over 13 years ago

Only process this if it's an array

View differences:

usr/local/www/services_dnsmasq.php
277 277
				</tr>
278 278
			</table>
279 279
	</tr>
280
	<?php if ($hostent['aliases']['item'] && is_array($hostent['aliases']['item'])): ?>
280 281
	<?php foreach ($hostent['aliases']['item'] as $alias): ?>
281 282
	<tr>
282 283
		<td class="listlr" ondblclick="document.location='services_dnsmasq_edit.php?id=<?=$i;?>';">
......
296 297
		</td>
297 298
	</tr>
298 299
	<?php endforeach; ?>
300
	<?php endif; ?>
299 301
	<?php $i++; endforeach; ?>
300 302
	</tbody>
301 303
	<tfoot>

Also available in: Unified diff