view 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 source
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());