From ef0739f143c88b12a9ff713c389d2332e4fd0074 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 19 Aug 2010 00:43:39 +0000 Subject: [PATCH] Fix: Ajax request must not return http/html headers. --- htdocs/product/ajaxproducts.php | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/htdocs/product/ajaxproducts.php b/htdocs/product/ajaxproducts.php index 1d33ec7cbb1..777cc484e34 100644 --- a/htdocs/product/ajaxproducts.php +++ b/htdocs/product/ajaxproducts.php @@ -1,7 +1,7 @@ * Copyright (C) 2005-2009 Regis Houssin - * Copyright (C) 2007-2009 Laurent Destailleur + * Copyright (C) 2007-2010 Laurent Destailleur * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -41,9 +41,14 @@ require('../main.inc.php'); $langs->load("products"); $langs->load("main"); -top_htmlhead("", "", 1); +/* + * View + */ -print ''."\n"; + +//top_htmlhead("", "", 1); // Disabled. An ajax return must not include html header. + +//print ''."\n"; // Generation liste de produits if (! empty($_GET['keysearch']) || ! empty($_GET['term'])) @@ -79,6 +84,6 @@ else if (! empty($_GET['selling'])) $db->close(); -print ""; -print ""; +//print ""; +//print ""; ?>