// 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
// 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