Index: branches/unlabeled/unlabeled-1.102.2/kernel/parser.php =================================================================== diff -u -r6429 -r6838 --- branches/unlabeled/unlabeled-1.102.2/kernel/parser.php (.../parser.php) (revision 6429) +++ branches/unlabeled/unlabeled-1.102.2/kernel/parser.php (.../parser.php) (revision 6838) @@ -542,9 +542,8 @@ } else { - $value = inp_htmlize($FormValues[$form][$field], 1); - if (is_array($value)) - { + $value = $FormValues[$form][$field]; + if (is_array($value)) { $value = is_null($value['lang_value'])? $value['value'] : $value['lang_value']; } $value = inp_htmlize($value, 1); @@ -614,6 +613,11 @@ $sql = 'SELECT ValueList FROM '.GetTablePrefix().'CustomField WHERE FieldName = %s AND Type = %s'; $values = $application->Conn->GetOne( sprintf($sql, $application->DB->qstr($field), $item_type ) ); + + // 2. replace any sqls found there + $objConfigDummy = new clsConfigAdminItem(); + $values = $objConfigDummy->replace_sql($values); + if(!$values) return ''; if( GetVar($field) ) Index: branches/unlabeled/unlabeled-1.26.2/admin/include/sections.php =================================================================== diff -u -r6436 -r6838 --- branches/unlabeled/unlabeled-1.26.2/admin/include/sections.php (.../sections.php) (revision 6436) +++ branches/unlabeled/unlabeled-1.26.2/admin/include/sections.php (.../sections.php) (revision 6838) @@ -664,12 +664,10 @@ */ $m = GetModuleArray("admin"); -if(is_array($m)) -{ - foreach($m as $key=>$value) - { +if (is_array($m)) { + foreach ($m as $key => $value) { $mod = $pathtoroot . $value . "admin/include/navmenu.php"; - include_once($mod); + if (file_exists($mod)) include_once($mod); } } $objSections->AddSection("default","","",$admin."/","#",NULL,NULL,NULL,NULL,NULL,NULL);