Fix: Variable non définie

This commit is contained in:
Laurent Destailleur 2005-11-04 01:28:28 +00:00
parent 971e4b04ec
commit 576ad425d2
2 changed files with 12 additions and 3 deletions

View File

@ -20,19 +20,24 @@
* $Id$ * $Id$
* $Source$ * $Source$
*/ */
/** \file htdocs/install/inc.php /** \file htdocs/install/inc.php
\brief Fichier include du programme d'installation \brief Fichier include du programme d'installation
\version $Revision$ \version $Revision$
*/ */
$docurl = '<a href="doc/dolibarr-install.html">documentation</a>'; $docurl = '<a href="doc/dolibarr-install.html">documentation</a>';
$conffile = "../conf/conf.php"; $conffile = "../conf/conf.php";
// Defini objet langs // Defini objet langs
require_once('../translate.class.php'); require_once('../translate.class.php');
$langs = new Translate('../langs'); $langs = new Translate('../langs');
$langs->setDefaultLang('auto'); $langs->setDefaultLang('auto');
$langs->setPhpLang(); $langs->setPhpLang();
$tab[0]=' class="bg1"';
$tab[1]=' class="bg2"'; $bc[false]=' class="bg1"';
$bc[true]=' class="bg2"';
function pHeader($soutitre,$next,$action='set') function pHeader($soutitre,$next,$action='set')
{ {
global $langs; global $langs;
@ -55,6 +60,7 @@ function pHeader($soutitre,$next,$action='set')
} }
print '<div class="main-inside">'; print '<div class="main-inside">';
} }
function pFooter($nonext=0,$setuplang='') function pFooter($nonext=0,$setuplang='')
{ {
global $langs; global $langs;
@ -74,6 +80,7 @@ function pFooter($nonext=0,$setuplang='')
print '</body>'; print '</body>';
print '</html>'; print '</html>';
} }
function dolibarr_syslog($message) function dolibarr_syslog($message)
{ {
// Les fonctions syslog ne sont pas toujours installés ou autorisées chez les hébergeurs // Les fonctions syslog ne sont pas toujours installés ou autorisées chez les hébergeurs

View File

@ -467,6 +467,8 @@ function migrate_contracts_open($db,$langs,$conf)
*/ */
function migrate_paiementfourn_facturefourn($db,$langs,$conf) function migrate_paiementfourn_facturefourn($db,$langs,$conf)
{ {
global $bc;
$error = 0; $error = 0;
$nb=0; $nb=0;
$select_sql = 'SELECT rowid, fk_facture_fourn, amount '; $select_sql = 'SELECT rowid, fk_facture_fourn, amount ';
@ -477,7 +479,7 @@ function migrate_paiementfourn_facturefourn($db,$langs,$conf)
{ {
$select_num = $db->num_rows($select_resql); $select_num = $db->num_rows($select_resql);
$i=0; $i=0;
$var = 0; $var = true;
// Pour chaque paiement fournisseur, on insère une ligne dans paiementfourn_facturefourn // Pour chaque paiement fournisseur, on insère une ligne dans paiementfourn_facturefourn
while ($i < $select_num && ! $error) while ($i < $select_num && ! $error)