diff --git a/phpgwapi/inc/class.browser.inc.php b/phpgwapi/inc/class.browser.inc.php index 9a2e139bd8..1432454a00 100644 --- a/phpgwapi/inc/class.browser.inc.php +++ b/phpgwapi/inc/class.browser.inc.php @@ -29,6 +29,8 @@ var $BROWSER_AGENT; var $BROWSER_VER; var $BROWSER_PLATFORM; + var $br; + var $p; var $data; function browser () @@ -108,6 +110,28 @@ echo "\nVersion: ".browser_get_version(); echo "\nAgent: ".browser_get_agent(); */ + + // The br and p functions are supposed to return the correct + // value for tags that do not need to be closed. This is + // per the xhmtl spec, so we need to fix this to include + // all compliant browsers we know of. + if ($this->BROWSER_AGENT == 'IE') + { + $this->br = '
'; + } + else + { + $this->br = '
'; + } + + if ($this->BROWSER_AGENT =='IE') + { + $this->p = '

'; + } + else + { + $this->p = '

'; + } } function return_array()