Fix: Variable non dfinie

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$
* $Source$
*/
/** \file htdocs/install/inc.php
\brief Fichier include du programme d'installation
\version $Revision$
*/
$docurl = '<a href="doc/dolibarr-install.html">documentation</a>';
$conffile = "../conf/conf.php";
// Defini objet langs
require_once('../translate.class.php');
$langs = new Translate('../langs');
$langs->setDefaultLang('auto');
$langs->setPhpLang();
$tab[0]=' class="bg1"';
$tab[1]=' class="bg2"';
$bc[false]=' class="bg1"';
$bc[true]=' class="bg2"';
function pHeader($soutitre,$next,$action='set')
{
global $langs;
@ -55,6 +60,7 @@ function pHeader($soutitre,$next,$action='set')
}
print '<div class="main-inside">';
}
function pFooter($nonext=0,$setuplang='')
{
global $langs;
@ -74,6 +80,7 @@ function pFooter($nonext=0,$setuplang='')
print '</body>';
print '</html>';
}
function dolibarr_syslog($message)
{
// 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)
{
global $bc;
$error = 0;
$nb=0;
$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);
$i=0;
$var = 0;
$var = true;
// Pour chaque paiement fournisseur, on insère une ligne dans paiementfourn_facturefourn
while ($i < $select_num && ! $error)