Project

General

Profile

« Previous | Next » 

Revision 4b5f2ab3

Added by Phil Davis about 9 years ago

Prevent foreach crash if no IPsec

On a system with no IPsec defined, this would crash with:
[04-Apr-2016 21:33:24 Etc/UTC] PHP Stack trace:
[04-Apr-2016 21:33:24 Etc/UTC] PHP 1. {main}() /usr/local/www/status_ipsec.php:0
[04-Apr-2016 21:33:24 Etc/UTC] PHP 2. print_ipsec_body() /usr/local/www/status_ipsec.php:74

I did belts-and-braces here - moved the "if" up at line 72 and also added an if(is_array()) at line 394

  • added
  • modified
  • copied
  • renamed
  • deleted