From 8c1e4f544938bc8c93958ab57fa0726f07a38764 Mon Sep 17 00:00:00 2001 From: dmacias72 Date: Thu, 20 Oct 2016 13:24:56 -0600 Subject: [PATCH] update php7 compatibility --- plugins/NerdPack.plg | 4 +++- plugins/NerdPack.xml | 4 +++- .../local/emhttp/plugins/NerdPack/include/DownloadHelpers.php | 2 +- .../local/emhttp/plugins/NerdPack/include/PackageQuery.php | 4 ++-- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/plugins/NerdPack.plg b/plugins/NerdPack.plg index 40576419..9d4e65c1 100755 --- a/plugins/NerdPack.plg +++ b/plugins/NerdPack.plg @@ -3,7 +3,7 @@ - + @@ -16,6 +16,8 @@ +###2016.10.20 +- fix: php7 compatibility ###2016.10.09 - fix: not creating package directory ###2016.10.08 diff --git a/plugins/NerdPack.xml b/plugins/NerdPack.xml index 43ddec28..01f413b9 100644 --- a/plugins/NerdPack.xml +++ b/plugins/NerdPack.xml @@ -11,8 +11,10 @@ This plugin allows installation of extra packages, mostly CLI, for advanced user http://lime-technology.com/forum/index.php?topic=37541.0 https://raw.githubusercontent.com/dmacias72/unRAID-plugins/master/plugins/NerdPack.png -2016-10-09 +2016-10-20 +###2016.10.20 +- fix: php7 compatibility ###2016.10.09 - fix: not creating package directory ###2016.10.08 diff --git a/source/NerdPack/usr/local/emhttp/plugins/NerdPack/include/DownloadHelpers.php b/source/NerdPack/usr/local/emhttp/plugins/NerdPack/include/DownloadHelpers.php index 2da425cb..8290ab4b 100644 --- a/source/NerdPack/usr/local/emhttp/plugins/NerdPack/include/DownloadHelpers.php +++ b/source/NerdPack/usr/local/emhttp/plugins/NerdPack/include/DownloadHelpers.php @@ -1,4 +1,4 @@ - $pkg_line) { if (preg_match('/^'.$pkg_name.'.*/',$pkg_key)){ - if(sizeof(array_diff(split('-', $pkg_key), split('-', $pkg_name))) < 2 ){ + if(sizeof(array_diff(explode('-', $pkg_key), explode('-', $pkg_name))) < 2 ){ $pkg_set = $pkg_line; break; }