aboutsummaryrefslogtreecommitdiffstats
path: root/config/systempatches/patches.inc
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2015-11-16 14:32:38 -0200
committerRenato Botelho <renato@netgate.com>2015-11-16 14:32:42 -0200
commit0251c7a9d9a32aa52948689c9ce9fd747e5c66fa (patch)
tree63b5247d9a89d5d71a3ce9d616866fa79dc7e266 /config/systempatches/patches.inc
parenta8b2bcdaffc7b1f30fa82799f90e15d3c8c93a26 (diff)
downloadpfsense-packages-0251c7a9d9a32aa52948689c9ce9fd747e5c66fa.tar.gz
pfsense-packages-0251c7a9d9a32aa52948689c9ce9fd747e5c66fa.tar.bz2
pfsense-packages-0251c7a9d9a32aa52948689c9ce9fd747e5c66fa.zip
Make sure config item is an array before try to foreach. Bump version 1.0.8
Diffstat (limited to 'config/systempatches/patches.inc')
-rw-r--r--config/systempatches/patches.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/config/systempatches/patches.inc b/config/systempatches/patches.inc
index 92825799..1c6ea4ba 100644
--- a/config/systempatches/patches.inc
+++ b/config/systempatches/patches.inc
@@ -175,6 +175,11 @@ function is_github_url($url) {
function bootup_apply_patches() {
global $config;
+ if (!isset($config['installedpackages']['patches']['item']) ||
+ !is_array($config['installedpackages']['patches']['item'])) {
+ $config['installedpackages']['patches']['item'] = array();
+ }
+
$a_patches = &$config['installedpackages']['patches']['item'];
foreach ($a_patches as $patch) {