From 234a39adeac013daba0072aab930c711238b15bb Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 4 May 2010 17:49:45 +0000 Subject: [PATCH] Fix: SQL error --- htdocs/fichinter/fichinter.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htdocs/fichinter/fichinter.class.php b/htdocs/fichinter/fichinter.class.php index 76f89900c46..23225dfbaef 100644 --- a/htdocs/fichinter/fichinter.class.php +++ b/htdocs/fichinter/fichinter.class.php @@ -375,6 +375,8 @@ class Fichinter extends CommonObject */ function verifyNumRef($soc) { + global $conf; + $sql = "SELECT rowid"; $sql.= " FROM ".MAIN_DB_PREFIX."fichinter"; $sql.= " WHERE ref = '".$this->ref."'";