Fix: Can disable a module for proposal PDF generation

This commit is contained in:
Laurent Destailleur 2009-05-05 14:40:00 +00:00
parent 6a396a1b13
commit 1aa5510b8d

View File

@ -23,10 +23,10 @@
*/ */
/** /**
\file htdocs/admin/propale.php * \file htdocs/admin/propale.php
\ingroup propale * \ingroup propale
\brief Page d'administration/configuration du module Propale * \brief Page d'administration/configuration du module Propale
\version $Id$ * \version $Id$
*/ */
require("./pre.inc.php"); require("./pre.inc.php");
@ -134,10 +134,9 @@ if ($_GET["action"] == 'del')
{ {
$type='propal'; $type='propal';
$sql = "DELETE FROM ".MAIN_DB_PREFIX."document_model"; $sql = "DELETE FROM ".MAIN_DB_PREFIX."document_model";
$sql.= " WHERE nom = '".$_GET["value"]; $sql.= " WHERE nom = '".$_GET["value"]."'";
$sql.= " AND type = '".$type."'"; $sql.= " AND type = '".$type."'";
$sql.= " AND entity = ".$conf->entity; $sql.= " AND entity = ".$conf->entity;
if ($db->query($sql)) if ($db->query($sql))
{ {