// Rewrite some parts
foreach ($modArray['module'] as $key => $mod) {
+ // Default without sql_patches
+ $entries = array('id','title','locked','hidden','admin_only','mem_only');
+
+ // Is ext-sql_patches newer or equal 0.3.6?
+ if ((isExtensionInstalled('sql_patches')) && (getExtensionVersion('sql_patches') >= '0.3.6')) {
+ // Add 'has_menu'
+ $entries[] = 'has_menu';
+ } // END - if
+
// Add all
- foreach (array('id','title','locked','hidden','admin_only','mem_only','has_menu') as $entry) {
+ foreach ($entries as $entry) {
// Is the entry set?
if (isset($GLOBALS['cache_array']['modules'][$entry][$key])) {
// Transfer it