Changeset - fe7bc59b7591
[Not reviewed]
default
0 1 0
Nathan Brink (binki) - 15 years ago 2011-01-27 19:53:49
ohnobinki@ohnopublishing.net
Fix warning about $_SERVER['HTTP_ACCEPT'] being undefined. Reported by normaldotcom, bug 72.
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
inc/class.page.php
Show inline comments
 
@@ -120,8 +120,8 @@ class page
 

	
 
   /* Compliant browsers which care, such as gecko, explicitly request xhtml: */
 
   if(!empty($_SERVER['HTTP_ACCEPT'])
 
      && strpos($_SERVER['HTTP_ACCEPT'], 'application/xhtml+xml') !== FALSE
 
      || !strlen($_SERVER['HTTP_ACCEPT']) /* then the browser doesn't care :-) */)
 
      && (strpos($_SERVER['HTTP_ACCEPT'], 'application/xhtml+xml') !== FALSE
 
	  || !strlen($_SERVER['HTTP_ACCEPT'])) /* then the browser doesn't care :-) */)
 
     {
 
       $this->xhtml = TRUE;
 
       header('Content-Type: application/xhtml+xml; charset=utf-8');
0 comments (0 inline, 0 general)