Fix: Plantage requete sql
This commit is contained in:
parent
a9771a9951
commit
a396ff68b9
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
/* Copyright (C) 2001-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2003 Éric Seigne <erics@rycks.com>
|
||||
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
*
|
||||
* 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
|
||||
@ -22,11 +22,11 @@
|
||||
*
|
||||
*/
|
||||
|
||||
/*!
|
||||
\file htdocs/fourn/fiche.php
|
||||
\ingroup fournisseur, facture
|
||||
\brief Page de fiche fournisseur
|
||||
\version $Revision$
|
||||
/**
|
||||
\file htdocs/fourn/fiche.php
|
||||
\ingroup fournisseur, facture
|
||||
\brief Page de fiche fournisseur
|
||||
\version $Revision$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
|
||||
@ -22,10 +22,10 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
\file htdocs/fourn/product/liste.php
|
||||
\ingroup produit
|
||||
\brief Page liste des produits ou services
|
||||
\version $Revision$
|
||||
\file htdocs/fourn/product/liste.php
|
||||
\ingroup produit
|
||||
\brief Page liste des produits ou services
|
||||
\version $Revision$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
@ -58,9 +58,14 @@ if ($_POST["button_removefilter"] == $langs->trans("RemoveFilter")) {
|
||||
$snom="";
|
||||
}
|
||||
|
||||
if ($_GET["fourn_id"] > 0)
|
||||
{
|
||||
$fourn_id = $_GET["fourn_id"];
|
||||
}
|
||||
|
||||
if (isset($_REQUEST['catid']))
|
||||
{
|
||||
$catid = $_REQUEST['catid'];
|
||||
$catid = $_REQUEST['catid'];
|
||||
}
|
||||
|
||||
/*
|
||||
@ -76,12 +81,6 @@ $sql .= ", min(ppf.price) as price";
|
||||
$sql .= ", s.nom";
|
||||
$sql .= " FROM ".MAIN_DB_PREFIX."product as p";
|
||||
|
||||
if ($_GET["fourn_id"] > 0)
|
||||
{
|
||||
$fourn_id = $_GET["fourn_id"];
|
||||
$sql .= ", ".MAIN_DB_PREFIX."product_fournisseur as pf";
|
||||
}
|
||||
|
||||
if ($catid)
|
||||
{
|
||||
$sql .= ", ".MAIN_DB_PREFIX."categorie_product as cp";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user