Lowecased booleans to fit with PSR-2 specification.

This commit is contained in:
Marcos García de La Fuente 2014-10-12 00:23:19 +02:00
parent 6c3c1d3a0a
commit f7a44347cb
16 changed files with 24 additions and 24 deletions

View File

@ -160,7 +160,7 @@ if ($result) {
print '</td>';
print '</tr>';
$var = True;
$var = true;
while ( $i < min($num, $limit) ) {
$obj = $db->fetch_object($resql);

View File

@ -99,7 +99,7 @@ print '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">'
print '<input type="hidden" name="action" value="update">';
print '<table class="noborder" width="100%">';
$var = True;
$var = true;
print '<tr class="liste_titre">';
print '<td colspan="2">' . $langs->trans("Modelcsv") . '</td>';

View File

@ -135,7 +135,7 @@ if ($result) {
print '<form action="' . $_SERVER["PHP_SELF"] . '" method="POST">' . "\n";
print '<input type="hidden" name="action" value="import">';
$var = True;
$var = true;
while ( $i < min($num_lines, $limit) ) {
$objp = $db->fetch_object($result);
$var = ! $var;

View File

@ -191,7 +191,7 @@ print "<br>\n";
* Define Chart of accounts
*/
print '<table class="noborder" width="100%">';
$var = True;
$var = true;
print '<tr class="liste_titre">';
print '<td colspan="3">';
@ -211,7 +211,7 @@ $sql .= " AND fk_pays = " . $mysoc->country_id;
dol_syslog('accountancy/admin/index.php:: $sql=' . $sql);
$resql = $db->query($sql);
$var = True;
$var = true;
if ($resql) {
$num = $db->num_rows($resql);

View File

@ -89,7 +89,7 @@ if ($resql) {
print '<td align="left">' . $langs->trans("Accountancy_code_sell") . '</td>';
print '<td align="left">' . $langs->trans("Accountancy_code_sell_suggest") . '</td>';
$var = True;
$var = true;
while ( $i < min($num, 250) ) {
$obj = $db->fetch_object($resql);

View File

@ -146,7 +146,7 @@ if ($resql)
print '</td>';
print "</tr>\n";
$var=True;
$var=true;
while ($i < min($num,$conf->liste_limit))
{

View File

@ -187,7 +187,7 @@ if (! empty($conf->commande->enabled))
if ($num)
{
$i = 0;
$var = True;
$var = true;
while ($i < $num)
{
$var=!$var;
@ -238,7 +238,7 @@ if ($resql)
if ($num)
{
$i = 0;
$var = True;
$var = true;
while ($i < $num)
{
$var=!$var;
@ -308,7 +308,7 @@ if (! empty($conf->commande->enabled))
if ($num)
{
$i = 0;
$var = True;
$var = true;
while ($i < $num)
{
$var=!$var;
@ -379,7 +379,7 @@ if (! empty($conf->commande->enabled))
if ($num)
{
$i = 0;
$var = True;
$var = true;
while ($i < $num)
{
$var=!$var;

View File

@ -622,7 +622,7 @@ if (($action != 'create' && $action != 'add') || !$error)
print '</form>';
print '<form name="orders2invoice" action="orderstoinvoice.php" method="GET">';
$var=True;
$var=true;
$generic_commande = new Commande($db);
while ($i < $num)

View File

@ -177,7 +177,7 @@ if ($resql)
print '</td>';
print "</tr>\n";
$var=True;
$var=true;
while ($i < min($num,$conf->liste_limit))
{

View File

@ -228,7 +228,7 @@ if ($action == 'create')
if (empty($conf->global->PRODUIT_MULTIPRICES)) print '<td align="right">'.$langs->trans("CurrentProductPrice").'</td>';
print "</tr>\n";
}
$var=True;
$var=true;
while ($i < $num)
{
$objp = $db->fetch_object($result);
@ -447,7 +447,7 @@ else
$num = count($object->lines);
$i = 0;
$var=True;
$var=true;
while ($i < $num)
{
$var=!$var;
@ -572,7 +572,7 @@ else
if ($num > 0)
{
$var=True;
$var=true;
while ($i < min($num,$limit))
{
$objp = $db->fetch_object($resql);

View File

@ -600,7 +600,7 @@ if ($resql)
if ($num > 0)
{
$var=True;
$var=true;
$total_ht=0;
$total_tva=0;
$total_ttc=0;

View File

@ -333,7 +333,7 @@ if ($resql)
if ($num > 0)
{
$var=True;
$var=true;
$total_ht=0;
$total_tva=0;
$total_ttc=0;

View File

@ -491,7 +491,7 @@ if ($object->id > 0)
print '<td align="center">'.$langs->trans("WithdrawalReceipt").'</td>';
print '<td align="center">'.$langs->trans("User").'</td><td>&nbsp;</td><td>&nbsp;</td>';
print '</tr>';
$var=True;
$var=true;
if ($result_sql)
{

View File

@ -494,7 +494,7 @@ if (! empty($conf->don->enabled) && $user->rights->societe->lire)
print '</tr>';
if ($num)
{
$var = True;
$var = true;
$total_ttc = $totalam = $total = 0;
$var=true;
@ -908,7 +908,7 @@ if ($resql)
print '<table class="noborder" width="100%">';
print '<tr class="liste_titre"><td colspan="2">'.$langs->trans("TasksToDo").'</td>';
print "</tr>\n";
$var = True;
$var = true;
$i = 0;
while ($i < $db->num_rows($resql))
{

View File

@ -509,7 +509,7 @@ if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paie
print '<td align="right">&nbsp;</td>';
print "</tr>\n";
$var=True;
$var=true;
$total=0;
$totalrecu=0;
$totalrecucreditnote=0;
@ -687,7 +687,7 @@ if (! GETPOST('action'))
{
$num = $db->num_rows($resql);
$i = 0;
$var=True;
$var=true;
print_barre_liste($langs->trans('Payments'), $page, $_SERVER["PHP_SELF"],'',$sortfield,$sortorder,'',$num);
print '<table class="noborder" width="100%">';

View File

@ -253,7 +253,7 @@ if ($_GET["action"] == 'create')
print '<td align="center">'.$langs->trans("Amount").'</td>';
print "</tr>\n";
$var=True;
$var=true;
$total=0;
$totalrecu=0;