]> git.mxchange.org Git - mailer.git/blobdiff - inc/inc-functions.php
Rewrites/fixes for broken template cache, the actual value was rendered but instead...
[mailer.git] / inc / inc-functions.php
index 54853e78ad893cc408c14917d074be4ccaf505c3..989eb238d4fb910d572ab93a4b0c8eb02f77420a 100644 (file)
@@ -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.'<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
@@ -116,7 +123,7 @@ function loadInclude ($inc) {
                // Is the include file there?
                if (!isIncludeReadable($inc)) {
                        // Not there so log it
-                       debug_report_bug(sprintf("Include file %s not found.", $inc));
+                       debug_report_bug(__FUNCTION__, __LINE__, sprintf("Include file %s not found.", $inc));
                } // END - if
        } // END - if