Fix: missing global declarations
This commit is contained in:
parent
86d91ff698
commit
1d5fb1320b
@ -365,7 +365,7 @@ class Fichinter extends CommonObject
|
||||
*/
|
||||
function setValid($user)
|
||||
{
|
||||
global $langs, $conf;
|
||||
global $conf;
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
|
||||
|
||||
$error=0;
|
||||
|
||||
@ -154,7 +154,7 @@ class ProductFournisseur extends Product
|
||||
*/
|
||||
function update_buyprice($qty, $buyprice, $user, $price_base_type, $fourn, $availability, $ref_fourn, $tva_tx, $charges=0, $remise_percent=0, $remise=0, $newnpr=0)
|
||||
{
|
||||
global $conf,$mysoc;
|
||||
global $conf;
|
||||
|
||||
// Clean parameter
|
||||
if (empty($qty)) $qty=0;
|
||||
|
||||
@ -38,6 +38,7 @@ if (!empty($_SESSION["dol_authmode"]) && ($_SESSION["dol_authmode"] == 'forceuse
|
||||
die("Disconnection does not work when connection was made in mode ".$_SESSION["dol_authmode"]);
|
||||
}
|
||||
|
||||
global $conf, $langs, $user;
|
||||
|
||||
// Appel des triggers
|
||||
include_once DOL_DOCUMENT_ROOT . '/core/class/interfaces.class.php';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user