X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Finc-functions.php;h=d93731ab0dbc14ee3cc4eac0a4cfa70eb95bdd4e;hb=74ea26a36ff202cfdca545025a17c9faf4d68efb;hp=06e912fa06bfb3ae58c7c504dab956597790d7f8;hpb=64c8349613addc3da2242c5cd6b99d64e3fb5f8e;p=mailer.git diff --git a/inc/inc-functions.php b/inc/inc-functions.php index 06e912fa06..d93731ab0d 100644 --- a/inc/inc-functions.php +++ b/inc/inc-functions.php @@ -1,7 +1,7 @@ '; - return $GLOBALS['inc_pool'][$pool]; + if (isset($GLOBALS['inc_pool'][$pool])) { + // Return found pool (array) + return $GLOBALS['inc_pool'][$pool]; + } else { + // Return empty array if not found + return array(); + } } // Count INC_POOL @@ -121,7 +128,7 @@ function loadInclude ($inc) { } // END - if // Try to load it - require($GLOBALS['inc_loaded'][$inc]); + include($GLOBALS['inc_loaded'][$inc]); } // Loads an include file once