# HG changeset patch # User Nathan Phillip Brink # Date 2011-01-27 19:53:49 # Node ID fe7bc59b75919de1300ae68d8a9b645ccbc3b54c # Parent 90f2acce2d8a58bb75095103e666c69828f5ec4b Fix warning about $_SERVER['HTTP_ACCEPT'] being undefined. Reported by normaldotcom, bug 72. diff --git a/inc/class.page.php b/inc/class.page.php --- a/inc/class.page.php +++ b/inc/class.page.php @@ -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');