Fixing style errors.
This commit is contained in:
parent
f6174ddf4a
commit
2849d00b4d
@ -106,7 +106,7 @@ class Members extends DolibarrApi
|
|||||||
$sql = "SELECT t.rowid";
|
$sql = "SELECT t.rowid";
|
||||||
$sql .= " FROM ".MAIN_DB_PREFIX."adherent as t";
|
$sql .= " FROM ".MAIN_DB_PREFIX."adherent as t";
|
||||||
if ($category > 0) {
|
if ($category > 0) {
|
||||||
$sql .= ", ".MAIN_DB_PREFIX."categorie_member as c";
|
$sql .= ", ".MAIN_DB_PREFIX."categorie_member as c";
|
||||||
}
|
}
|
||||||
$sql .= ' WHERE t.entity IN ('.getEntity('adherent').')';
|
$sql .= ' WHERE t.entity IN ('.getEntity('adherent').')';
|
||||||
if (!empty($typeid))
|
if (!empty($typeid))
|
||||||
@ -115,8 +115,8 @@ class Members extends DolibarrApi
|
|||||||
}
|
}
|
||||||
// Select members of given category
|
// Select members of given category
|
||||||
if ($category > 0) {
|
if ($category > 0) {
|
||||||
$sql .= " AND c.fk_categorie = ".$db->escape($category);
|
$sql .= " AND c.fk_categorie = ".$db->escape($category);
|
||||||
$sql .= " AND c.fk_member = t.rowid ";
|
$sql .= " AND c.fk_member = t.rowid ";
|
||||||
}
|
}
|
||||||
// Add sql filters
|
// Add sql filters
|
||||||
if ($sqlfilters)
|
if ($sqlfilters)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user