Fix phpcs

This commit is contained in:
Laurent Destailleur 2019-11-12 09:47:39 +01:00
parent dc77a58a73
commit df03041dba
2 changed files with 3 additions and 2 deletions

View File

@ -612,7 +612,7 @@ if (! defined('NOLOGIN'))
if (! $login || (in_array('ldap', $authmode) && empty($passwordtotest))) // With LDAP we refused empty password because some LDAP are "opened" for anonymous access so connexion is a success.
{
// No data to test login, so we show the login page
dol_syslog("--- Access to ".$_SERVER["PHP_SELF"]." - action=".GETPOST('action','aZ09').", showing the login form and exit");
dol_syslog("--- Access to ".$_SERVER["PHP_SELF"]." - action=".GETPOST('action', 'aZ09').", showing the login form and exit");
if (defined('NOREDIRECTBYMAINTOLOGIN')) return 'ERROR_NOT_LOGGED';
else dol_loginfunction($langs, $conf, (! empty($mysoc)?$mysoc:''));
exit;

View File

@ -809,7 +809,8 @@ class Mo extends CommonObject
}
else
{
// If origin BOM line is not a product, but another BOM
// TODO
}
$this->tpl['qty'] = $line->qty;