Project

General

Profile

« Previous | Next » 

Revision e0ba24f7

Added by Seth Mos over 12 years ago

Switch to is_array() check and add curly

View differences:

etc/inc/gwlb.inc
743 743
				$backupplan[$tier][] = $gwname;
744 744

  
745 745
				/* check if the gateway is available before adding it to the array */
746
				if (!empty($gateways_status[$gwname])) {
746
				if (is_array($gateways_status[$gwname])) {
747 747
					$status = $gateways_status[$gwname];
748 748
					$gwdown = false;
749 749
					if (stristr($status['status'], "down")) {
......
762 762
						log_error($msg);
763 763
						notify_via_growl($msg);
764 764
						notify_via_smtp($msg);
765
					} else
765
					} else {
766 766
						/* Online add member */
767 767
						$tiers[$tier][] = $gwname;
768
					}
768 769
				} else if (isset($gateways_arr[$gwname]['monitor_disable']))
769 770
					$tiers[$tier][] = $gwname;
770 771
			}

Also available in: Unified diff