From 980e227ef63cfc3fc066e45a581384272669c414 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Wed, 12 Oct 2016 10:06:22 -0400 Subject: [PATCH] CRM-19479 - Fix php undefined index notices --- CRM/Utils/Check/Component/Security.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Utils/Check/Component/Security.php b/CRM/Utils/Check/Component/Security.php index b1e13148a4..458dd5131c 100644 --- a/CRM/Utils/Check/Component/Security.php +++ b/CRM/Utils/Check/Component/Security.php @@ -393,8 +393,8 @@ class CRM_Utils_Check_Component_Security extends CRM_Utils_Check_Component { $filePathMarker = $this->getFilePathMarker(); $config = CRM_Core_Config::singleton(); - list ($heuristicBaseUrl, $ignore) = explode($filePathMarker, $config->imageUploadURL); - list ($ignore, $heuristicSuffix) = explode($filePathMarker, str_replace('\\', '/', $targetDir)); + list($heuristicBaseUrl) = explode($filePathMarker, $config->imageUploadURL); + list(, $heuristicSuffix) = array_pad(explode($filePathMarker, str_replace('\\', '/', $targetDir)), 2, ''); return $heuristicBaseUrl . $filePathMarker . $heuristicSuffix; } -- 2.25.1