]> git.mxchange.org Git - mailer.git/blobdiff - inc/inc-functions.php
Fix for non-working theme-selector
[mailer.git] / inc / inc-functions.php
index c31c7eb78bf1167c12487e2b1074d17693d2c880..d93731ab0dbc14ee3cc4eac0a4cfa70eb95bdd4e 100644 (file)
@@ -57,7 +57,13 @@ function setIncludePool ($pool, $includePool) {
 // Getter for INC_POOL
 function getIncludePool ($pool) {
        //* DEBUG: */ print __FUNCTION__.':pool='.$pool.'<br />';
-       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