Merge pull request #5905 from grandoc/4.0

Fix : Fatal error: Call to a member function fetch() on null for intervention
This commit is contained in:
Laurent Destailleur 2016-10-24 00:11:51 +02:00 committed by GitHub
commit f0a183a8c7
2 changed files with 2 additions and 1 deletions

View File

@ -918,6 +918,7 @@ if ($action == 'create')
if ($socid > 0)
{
$soc=new Societe($db);
$soc->fetch($socid);
print '<form name="fichinter" action="'.$_SERVER['PHP_SELF'].'" method="POST">';

View File

@ -53,7 +53,7 @@ $db_pass=GETPOST('db_pass');
$db_port=GETPOST('db_port','int');
$db_prefix=GETPOST('db_prefix','alpha');
session_start(); // To be able to keep info into session (used for not loosing pass during navigation. pass must not transit throug parmaeters)
session_start(); // To be able to keep info into session (used for not losing password during navigation. The password must not transmit through parameters)
// Save a flag to tell to restore input value if we do back
$_SESSION['dol_save_pass']=$db_pass;