Fix: Test were inverted.

This commit is contained in:
Laurent Destailleur 2014-01-30 18:11:40 +01:00
parent 85436f871c
commit 47ff6a68bb

View File

@ -289,8 +289,8 @@ if (! isset($_SERVER['WINDIR']))
print '</form>'; print '</form>';
} }
// Module produits // Module products
if (! empty($conf->societe->enabled)) if (! empty($conf->product->enabled))
{ {
$var=!$var; $var=!$var;
print "<form method=\"post\" action=\"".$_SERVER["PHP_SELF"]."\">"; print "<form method=\"post\" action=\"".$_SERVER["PHP_SELF"]."\">";
@ -307,8 +307,8 @@ if (! empty($conf->societe->enabled))
print '</form>'; print '</form>';
} }
// Module produits // Module thirdparty
if (! empty($conf->product->enabled)) if (! empty($conf->societe->enabled))
{ {
$var=!$var; $var=!$var;
print "<form method=\"post\" action=\"".$_SERVER["PHP_SELF"]."\">"; print "<form method=\"post\" action=\"".$_SERVER["PHP_SELF"]."\">";