diff --git a/htdocs/adherents/class/adherent.class.php b/htdocs/adherents/class/adherent.class.php
index 77ac39628e3..48f9a089747 100644
--- a/htdocs/adherents/class/adherent.class.php
+++ b/htdocs/adherents/class/adherent.class.php
@@ -116,8 +116,9 @@ class Adherent extends CommonObject
/**
- * Adherent
- * @param DB base de donnees
+ * Constructor
+ *
+ * @param DoliDB $DB Database handler
*/
function Adherent($DB)
{
diff --git a/htdocs/adherents/class/adherent_type.class.php b/htdocs/adherents/class/adherent_type.class.php
index 782949a2f92..3793be3b38d 100644
--- a/htdocs/adherents/class/adherent_type.class.php
+++ b/htdocs/adherents/class/adherent_type.class.php
@@ -49,8 +49,9 @@ class AdherentType extends CommonObject
/**
- * \brief AdherentType
- * \param DB handler acces base de donnees
+ * Constructor
+ *
+ * @param DoliDB $DB Database handler
*/
function AdherentType($DB)
{
@@ -194,6 +195,7 @@ class AdherentType extends CommonObject
/**
* Return list of members' type
+ *
* @return array List of types of members
*/
function liste_array()
@@ -233,11 +235,12 @@ class AdherentType extends CommonObject
/**
- * \brief Renvoie nom clicable (avec eventuellement le picto)
- * \param withpicto 0=Pas de picto, 1=Inclut le picto dans le lien, 2=Picto seul
- * \param maxlen length max libelle
- * \param option Page lien
- * \return string Chaine avec URL
+ * Renvoie nom clicable (avec eventuellement le picto)
+ *
+ * @param withpicto 0=Pas de picto, 1=Inclut le picto dans le lien, 2=Picto seul
+ * @param maxlen length max libelle
+ * @param option Page lien
+ * @return string Chaine avec URL
*/
function getNomUrl($withpicto=0,$maxlen=0)
{
@@ -260,6 +263,7 @@ class AdherentType extends CommonObject
/**
* getMailOnValid
+ *
* @return Return mail model
*/
function getMailOnValid()
@@ -278,6 +282,7 @@ class AdherentType extends CommonObject
/**
* getMailOnSubscription
+ *
* @return Return mail model
*/
function getMailOnSubscription()
@@ -296,6 +301,7 @@ class AdherentType extends CommonObject
/**
* getMailOnResiliate
+ *
* @return Return mail model
*/
function getMailOnResiliate()
diff --git a/htdocs/adherents/class/adherentstats.class.php b/htdocs/adherents/class/adherentstats.class.php
index 6ad16b59fdb..5ea122c80d3 100755
--- a/htdocs/adherents/class/adherentstats.class.php
+++ b/htdocs/adherents/class/adherentstats.class.php
@@ -45,12 +45,12 @@ class AdherentStats extends Stats
/**
- * Constructor
+ * Constructor
*
- * @param $DB Database handler
- * @param $socid Id third party
- * @param $userid Id user for filter
- * @return AdherentStats
+ * @param DoliDB $DB Database handler
+ * @param int $socid Id third party
+ * @param int $userid Id user for filter
+ * @return AdherentStats
*/
function AdherentStats($DB, $socid=0, $userid=0)
{
diff --git a/htdocs/adherents/class/cotisation.class.php b/htdocs/adherents/class/cotisation.class.php
index 7ce4ca1d80d..75c7749e465 100644
--- a/htdocs/adherents/class/cotisation.class.php
+++ b/htdocs/adherents/class/cotisation.class.php
@@ -49,8 +49,9 @@ class Cotisation extends CommonObject
/**
- * \brief Constructor
- * \param DB Handler base de donnees
+ * Constructor
+ *
+ * @param DoliDB $DB Database handler
*/
function Cotisation($DB)
{
@@ -59,9 +60,10 @@ class Cotisation extends CommonObject
/**
- * \brief Fonction qui permet de creer la cotisation
- * \param userid userid de celui qui insere
- * \return int <0 si KO, Id cotisation cree si OK
+ * Fonction qui permet de creer la cotisation
+ *
+ * @param userid userid de celui qui insere
+ * @return int <0 si KO, Id cotisation cree si OK
*/
function create($userid)
{
@@ -95,9 +97,10 @@ class Cotisation extends CommonObject
/**
- * \brief Fonction qui permet de recuperer une cotisation
- * \param rowid Id cotisation
- * \return int <0 si KO, =0 si OK mais non trouve, >0 si OK
+ * Fonction qui permet de recuperer une cotisation
+ *
+ * @param rowid Id cotisation
+ * @return int <0 si KO, =0 si OK mais non trouve, >0 si OK
*/
function fetch($rowid)
{
@@ -144,10 +147,11 @@ class Cotisation extends CommonObject
/**
- * \brief Met a jour en base la cotisation
- * \param user Objet user qui met a jour
- * \param notrigger 0=Desactive les triggers
- * \param int <0 if KO, >0 if OK
+ * Met a jour en base la cotisation
+ *
+ * @param user Objet user qui met a jour
+ * @param notrigger 0=Desactive les triggers
+ * @param int <0 if KO, >0 if OK
*/
function update($user,$notrigger=0)
{
@@ -184,9 +188,10 @@ class Cotisation extends CommonObject
}
/**
- * \brief Delete a subscription
- * \param rowid Id cotisation
- * \return int <0 si KO, 0 si OK mais non trouve, >0 si OK
+ * Delete a subscription
+ *
+ * @param rowid Id cotisation
+ * @return int <0 si KO, 0 si OK mais non trouve, >0 si OK
*/
function delete($user)
{
@@ -250,9 +255,10 @@ class Cotisation extends CommonObject
/**
- * \brief Renvoie nom clicable (avec eventuellement le picto)
- * \param withpicto 0=Pas de picto, 1=Inclut le picto dans le lien, 2=Picto seul
- * \return string Chaine avec URL
+ * Renvoie nom clicable (avec eventuellement le picto)
+ *
+ * @param withpicto 0=Pas de picto, 1=Inclut le picto dans le lien, 2=Picto seul
+ * @return string Chaine avec URL
*/
function getNomUrl($withpicto=0)
{
@@ -274,8 +280,9 @@ class Cotisation extends CommonObject
/**
- * \brief Charge les informations d'ordre info dans l'objet cotisation
- * \param id Id adhesion a charger
+ * Charge les informations d'ordre info dans l'objet cotisation
+ *
+ * @param id Id adhesion a charger
*/
function info($id)
{
diff --git a/htdocs/adherents/stats/geo.php b/htdocs/adherents/stats/geo.php
index fc7e09f60b6..5ac68ded510 100755
--- a/htdocs/adherents/stats/geo.php
+++ b/htdocs/adherents/stats/geo.php
@@ -168,7 +168,7 @@ dol_fiche_head($head, $tab, $langs->trans("Statistics"), 0, 'user');
// Print title
-if ($mode && ! sizeof($data))
+if ($mode && ! count($data))
{
print $langs->trans("NoValidatedMemberYet").'
';
print '
';
@@ -202,7 +202,7 @@ if ($mode == 'memberbycountry')
print "function drawMap() {\n\tvar data = new google.visualization.DataTable();\n";
// Get the total number of rows
- print "\tdata.addRows(".sizeof($data).");\n";
+ print "\tdata.addRows(".count($data).");\n";
print "\tdata.addColumn('string', 'Country');\n";
print "\tdata.addColumn('number', 'Number');\n";
diff --git a/htdocs/admin/menus/edit.php b/htdocs/admin/menus/edit.php
index d9487e658de..df5d7c740f3 100644
--- a/htdocs/admin/menus/edit.php
+++ b/htdocs/admin/menus/edit.php
@@ -261,7 +261,7 @@ if ($action == 'create')
if ($res)
{
- while ($menu = $db->fetch_array ($res))
+ while ($menu = $db->fetch_array($res))
{
$parent_rowid = $menu['rowid'];
$parent_mainmenu = $menu['mainmenu'];
diff --git a/htdocs/admin/menus/index.php b/htdocs/admin/menus/index.php
index 9a72df931d8..c21503b15d2 100644
--- a/htdocs/admin/menus/index.php
+++ b/htdocs/admin/menus/index.php
@@ -300,7 +300,7 @@ if ($conf->use_javascript_ajax)
$num = $db->num_rows($res);
$i = 1;
- while ($menu = $db->fetch_array ($res))
+ while ($menu = $db->fetch_array($res))
{
if (! empty($menu['langs'])) $langs->load($menu['langs']);
$titre = $langs->trans($menu['titre']);
diff --git a/htdocs/admin/menus/menu.js.php b/htdocs/admin/menus/menu.js.php
index 89a04a11dee..8526569f1fc 100644
--- a/htdocs/admin/menus/menu.js.php
+++ b/htdocs/admin/menus/menu.js.php
@@ -32,7 +32,7 @@ if (! defined('NOREQUIREMENU')) define('NOREQUIREMENU',1);
if (! defined('NOREQUIREHTML')) define('NOREQUIREHTML',1);
if (! defined('NOREQUIREAJAX')) define('NOREQUIREAJAX','1');
-session_cache_limiter( FALSE );
+session_cache_limiter(FALSE);
require_once("../../master.inc.php");
require_once(DOL_DOCUMENT_ROOT."/lib/functions.lib.php");
diff --git a/htdocs/admin/notification.php b/htdocs/admin/notification.php
index 150122461e7..58617e87df4 100644
--- a/htdocs/admin/notification.php
+++ b/htdocs/admin/notification.php
@@ -27,6 +27,7 @@ require_once(DOL_DOCUMENT_ROOT."/lib/admin.lib.php");
require_once(DOL_DOCUMENT_ROOT."/includes/triggers/interface_modNotification_Notification.class.php");
$langs->load("admin");
+$langs->load("mails");
// Security check
if (!$user->admin)
@@ -63,7 +64,7 @@ print_fiche_titre($langs->trans("NotificationSetup"),$linkback,'setup');
print $langs->trans("NotificationsDesc").'
';
-if ($mesg) print $mesg.'
';
+dol_htmloutput_mesg($mesg);
print '