Index: branches/5.1.x/core/kernel/utility/http_query.php =================================================================== diff -u -N -r14241 -r14325 --- branches/5.1.x/core/kernel/utility/http_query.php (.../http_query.php) (revision 14241) +++ branches/5.1.x/core/kernel/utility/http_query.php (.../http_query.php) (revision 14325) @@ -1,6 +1,6 @@ Conn =& $this->Application->GetADODBConnection(); $this->Order = $order; - if (array_key_exists('HTTP_X_REQUESTED_WITH', $_SERVER) && $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest') { + if ( isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest') { // when AJAX request is made from jQuery, then create ajax variable, // so any logic based in it (like redirects) will not break down $_GET['ajax'] = 'yes';