From b2ae3b4271471513f75c2a8389278c56162b18d8 Mon Sep 17 00:00:00 2001 From: opensides Date: Sun, 19 Sep 2004 15:44:04 +0000 Subject: [PATCH] deplacement de la ligne 81 a la ligne 34 pour assigner $_GET["socid"] remplaceement de $sendit par $_POST["sendit"] --- htdocs/docsoc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/docsoc.php b/htdocs/docsoc.php index 5d3bd7e55ae..91e217b45ea 100644 --- a/htdocs/docsoc.php +++ b/htdocs/docsoc.php @@ -31,6 +31,7 @@ require("./pre.inc.php"); llxHeader(); $mesg = ""; +$socid=$_GET["socid"]; $upload_dir = SOCIETE_OUTPUTDIR . "/" . $socid ; @@ -43,7 +44,7 @@ if (! is_dir($upload_dir)) } } -if ( $sendit && defined('MAIN_UPLOAD_DOC') && MAIN_UPLOAD_DOC == 1) +if ( $_POST["sendit"] && defined('MAIN_UPLOAD_DOC') && MAIN_UPLOAD_DOC == 1) { if (is_dir($upload_dir)) { @@ -77,8 +78,7 @@ if ($action=='delete') * Mode fiche * * - */ -$socid=$_GET["socid"]; + */ if ($socid > 0) {