Project

General

Profile

« Previous | Next » 

Revision 8c2a5a73

Added by Phil Davis over 10 years ago

Fix bracketing of if statement in unbound

Stops message:
Warning: in_array() expects parameter 2 to be array, null given in /etc/inc/unbound.inc on line 607
The problem was introduced when lines 607-608 were added without adding these brackets.
IMHO programming standards should include ALWAYS using brackets for "if" and other similar statements. That way this sort of code addition accident does not happen. But I guess there are others who have different opinions.

  • added
  • modified
  • copied
  • renamed
  • deleted