From 75f749c4ec378d011bf3927303c12b728375aeeb Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Wed, 16 Dec 2009 16:29:29 +0000 Subject: [PATCH] Fix: change "idp" to "rowid" --- htdocs/document.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/document.php b/htdocs/document.php index f27f039d46b..46c0ce082d2 100644 --- a/htdocs/document.php +++ b/htdocs/document.php @@ -245,7 +245,7 @@ if ($modulepart) $accessallowed=1; } $original_file=$conf->societe->dir_output.'/'.$original_file; - $sqlprotectagainstexternals = "SELECT rowid as fk_soc FROM ".MAIN_DB_PREFIX."societe WHERE idp='$refname'"; + $sqlprotectagainstexternals = "SELECT rowid as fk_soc FROM ".MAIN_DB_PREFIX."societe WHERE rowid = '".$refname."'"; } // Wrapping pour les expedition