Mercurial > defr > drupal > popups
diff patches/9-fix_warnings_php_fgm.patch @ 2:c076d54409cb
Popus: Version RF
author | Franck Deroche <franck@defr.org> |
---|---|
date | Fri, 31 Dec 2010 13:46:12 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/patches/9-fix_warnings_php_fgm.patch Fri Dec 31 13:46:12 2010 +0100 @@ -0,0 +1,13 @@ +Index: popups.module +=================================================================== +--- popups.module (révision 2370) ++++ popups.module (copie de travail) +@@ -295,7 +295,7 @@ + static $added = FALSE; + static $shouldAdd = NULL; + if (is_null($shouldAdd)) { +- $shouldAdd = $_SERVER['HTTP_X_REQUESTED_WITH'] != 'XMLHttpRequest' || $_SESSION['page_override']; ++ $shouldAdd = !isset($_SERVER['HTTP_X_REQUESTED_WITH']) || $_SERVER['HTTP_X_REQUESTED_WITH'] != 'XMLHttpRequest' || $_SESSION['page_override']; + } + $settings = array('popups' => array()); +