Fix: SQL error

This commit is contained in:
Laurent Destailleur 2010-05-04 17:49:45 +00:00
parent 1ec8213630
commit 234a39adea

View File

@ -375,6 +375,8 @@ class Fichinter extends CommonObject
*/ */
function verifyNumRef($soc) function verifyNumRef($soc)
{ {
global $conf;
$sql = "SELECT rowid"; $sql = "SELECT rowid";
$sql.= " FROM ".MAIN_DB_PREFIX."fichinter"; $sql.= " FROM ".MAIN_DB_PREFIX."fichinter";
$sql.= " WHERE ref = '".$this->ref."'"; $sql.= " WHERE ref = '".$this->ref."'";