diff --git a/dev/setup/codesniffer/ruleset.xml b/dev/setup/codesniffer/ruleset.xml
index 2c82435e401..00ee3e5fb8c 100644
--- a/dev/setup/codesniffer/ruleset.xml
+++ b/dev/setup/codesniffer/ruleset.xml
@@ -75,10 +75,13 @@
+
@@ -97,8 +100,11 @@
-
-
+
+
+
+ 0
+
+
+
+
+
0
@@ -152,7 +162,10 @@
-
+
+
+ 0
+
@@ -169,6 +182,7 @@
+
@@ -177,6 +191,7 @@
+
@@ -317,22 +332,29 @@
-
+
+
+
+
0
+
0
0
+
0
@@ -341,12 +363,15 @@
+
0
+
0
+
0
diff --git a/htdocs/adherents/class/adherent.class.php b/htdocs/adherents/class/adherent.class.php
index fc61e56115c..3119e044be0 100644
--- a/htdocs/adherents/class/adherent.class.php
+++ b/htdocs/adherents/class/adherent.class.php
@@ -596,7 +596,7 @@ class Adherent extends CommonObject
{
while ($obj=$this->db->fetch_object($resql2))
{
- $this->type=$obj->label;
+ $this->type=$obj->label;
}
}
}
diff --git a/htdocs/adherents/class/adherent_type.class.php b/htdocs/adherents/class/adherent_type.class.php
index 5e7847efa82..3a39632d783 100644
--- a/htdocs/adherents/class/adherent_type.class.php
+++ b/htdocs/adherents/class/adherent_type.class.php
@@ -411,7 +411,7 @@ class AdherentType extends CommonObject
}
}
- /**
+ /**
* Return translated label by the nature of a adherent (physical or moral)
*
* @param string $morphy Nature of the adherent (physical or moral)
diff --git a/htdocs/adherents/htpasswd.php b/htdocs/adherents/htpasswd.php
index 4d860abcc68..885e453c6f1 100644
--- a/htdocs/adherents/htpasswd.php
+++ b/htdocs/adherents/htpasswd.php
@@ -43,13 +43,13 @@ if (empty($sortorder)) { $sortorder="ASC"; }
if (empty($sortfield)) { $sortfield="d.login"; }
if (! isset($statut))
{
- $statut = 1 ;
+ $statut = 1 ;
}
if (! isset($cotis))
{
- // by default, members must be up to date of subscription
- $cotis=1;
+ // by default, members must be up to date of subscription
+ $cotis=1;
}
diff --git a/htdocs/adherents/stats/geo.php b/htdocs/adherents/stats/geo.php
index 2ae7e2d0001..bffb3418dba 100644
--- a/htdocs/adherents/stats/geo.php
+++ b/htdocs/adherents/stats/geo.php
@@ -235,7 +235,7 @@ else
print '
';
print ''.$langs->trans("MembersStatisticsByTown").'
';
print '
';//+
- print ''.$langs->trans("MembersStatisticsByRegion").'
';//+
+ print ''.$langs->trans("MembersStatisticsByRegion").'
';//+
}
print '
';
}
diff --git a/htdocs/adherents/subscription/list.php b/htdocs/adherents/subscription/list.php
index 574f061b25d..8e8482d4398 100644
--- a/htdocs/adherents/subscription/list.php
+++ b/htdocs/adherents/subscription/list.php
@@ -306,7 +306,7 @@ if (! empty($arrayfields['d.fk_type']['checked']))
{
print '
';
print '';
- print' | ';
+ print'';
}
if (! empty($arrayfields['d.lastname']['checked']))
diff --git a/htdocs/adherents/tpl/linkedobjectblock.tpl.php b/htdocs/adherents/tpl/linkedobjectblock.tpl.php
index e85eed336fb..99e3cc5f526 100644
--- a/htdocs/adherents/tpl/linkedobjectblock.tpl.php
+++ b/htdocs/adherents/tpl/linkedobjectblock.tpl.php
@@ -47,10 +47,10 @@ foreach($linkedObjectBlock as $key => $objectlink)
|
dateh, 'day'); ?> |
rights->adherent->lire) {
- $total = $total + $objectlink->amount;
- echo price($objectlink->amount);
- } ?> |
+ if ($user->rights->adherent->lire) {
+ $total = $total + $objectlink->amount;
+ echo price($objectlink->amount);
+ } ?>
|
id.'&action=dellink&dellinkid='.$key; ?>">transnoentitiesnoconv("RemoveLink"), 'unlink'); ?> |
diff --git a/htdocs/adherents/type.php b/htdocs/adherents/type.php
index 1a5c368f177..650a466140c 100644
--- a/htdocs/adherents/type.php
+++ b/htdocs/adherents/type.php
@@ -281,9 +281,9 @@ if (! $rowid && $action != 'create' && $action != 'edit')
print '';
print ''.dol_escape_htmltag($objp->label).' | ';
print '';
- if ($objp->morphy == 'phy') { print $langs->trans("Physical"); }
- elseif ($objp->morphy == 'mor') { print $langs->trans("Moral"); }
- else print $langs->trans("Physical & Morale");
+ if ($objp->morphy == 'phy') { print $langs->trans("Physical"); }
+ elseif ($objp->morphy == 'mor') { print $langs->trans("Moral"); }
+ else print $langs->trans("Physical & Morale");
print ' | ';
print ''.yn($objp->subscription).' | ';
print ''.yn($objp->vote).' | ';