2
0
forked from Wavyzz/dolibarr

New: Ajout methode ifsql dans les gestionnaire de bases

This commit is contained in:
Laurent Destailleur
2005-07-03 13:01:23 +00:00
parent 088d1cecb2
commit f1642f260a
2 changed files with 6 additions and 9 deletions

View File

@@ -453,15 +453,14 @@ class DoliDb
/**
\brief Formatage d'un if SQL
\param operande1 operande 1
\param operande2 operande 2
\param test chaine test
\param resok resultat si test egal
\param resko resultat si test non egal
\return string chaine format<61> SQL
*/
function ifsql($operande1,$operande2,$resok,$resko)
function ifsql($test,$resok,$resko)
{
return 'IF('.$operande1.'='.$operande2.','.$resok.','.$resko.')';
return 'IF('.$test.','.$resok.','.$resko.')';
}