array($module), __FUNCTION__, __LINE__);
if (SQL_NUMROWS($result) == 1) {
// Read data
- //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Entry found.');
- $GLOBALS['cache_array']['modules'][$module] = SQL_FETCHARRAY($result);
+ $data = SQL_FETCHARRAY($result);
+
+ // Set all entries
+ foreach ($data as $key=>$value) {
+ $GLOBALS['cache_array']['modules'][$key][$module] = $value;
+ } // END - foreach
+
+ // Mark as found
$found = true;
} elseif (isDebugModeEnabled()) {
// Debug message only in debug-mode...
setModuleStatus($module_chk, 'admin_only');
} else {
// @TODO Nothing helped???
- logDebugMessage(__FUNCTION__, __LINE__, sprintf("ret=%s,locked=%s,hidden=%s,admin=%s,mem=%s",
+ logDebugMessage(__FUNCTION__, __LINE__, sprintf("ret=%s,locked=%s,hidden=%s,mem=%s,admin=%s",
getModuleStatus($module_chk),
$GLOBALS['cache_array']['modules']['locked'][$module_chk],
$GLOBALS['cache_array']['modules']['hidden'][$module_chk],
- $GLOBALS['cache_array']['modules']['admin_only'][$module_chk],
- $GLOBALS['cache_array']['modules']['mem_only'][$module_chk]
+ $GLOBALS['cache_array']['modules']['mem_only'][$module_chk],
+ $GLOBALS['cache_array']['modules']['admin_only'][$module_chk]
));
}
} // END - if