Index: branches/RC/core/units/admin/admin_tag_processor.php =================================================================== diff -u -r9639 -r9643 --- branches/RC/core/units/admin/admin_tag_processor.php (.../admin_tag_processor.php) (revision 9639) +++ branches/RC/core/units/admin/admin_tag_processor.php (.../admin_tag_processor.php) (revision 9643) @@ -783,12 +783,19 @@ return $this->Application->HREF($t, '', $vars, $index_file); } + /** + * Returns menu frame width or 200 in case, when invalid width specified in config + * + * @param Array $params + * @return string + */ function MenuFrameWidth($params) { - $w = $this->Application->ConfigValue('MenuFrameWidth'); - if (!$w) $w = 200; - return $w; + $width = (int)$this->Application->ConfigValue('MenuFrameWidth'); + + return $width > 0 ? $width : 200; } + function AdminSkin($params) { static $style; @@ -862,7 +869,7 @@ $this->Application->RemoveVar('compile_errors'); return $o; } - + function ExportData($params) { $export_helper =& $this->Application->recallObject('CSVHelper');