X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Finc-functions.php;h=d93731ab0dbc14ee3cc4eac0a4cfa70eb95bdd4e;hp=54853e78ad893cc408c14917d074be4ccaf505c3;hb=3ce031a4ae807dd16a6e08e3e592fe7128de724a;hpb=039203d5428c9c6a3bed61fb3a9a16958c6fd44c diff --git a/inc/inc-functions.php b/inc/inc-functions.php index 54853e78ad..d93731ab0d 100644 --- a/inc/inc-functions.php +++ b/inc/inc-functions.php @@ -18,6 +18,7 @@ * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * + * Copyright (c) 2009, 2010 by Mailer Developer Team * * For more information visit: http://www.mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -56,7 +57,13 @@ function setIncludePool ($pool, $includePool) { // Getter for INC_POOL function getIncludePool ($pool) { //* DEBUG: */ print __FUNCTION__.':pool='.$pool.'
'; - 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