Fixing style errors.
This commit is contained in:
parent
8be2bd60a2
commit
c4ca2e7b95
@ -85,12 +85,10 @@ if ($action == 'addcontact' && $user->rights->resource->write) {
|
|||||||
setEventMessages($mesg, null, 'errors');
|
setEventMessages($mesg, null, 'errors');
|
||||||
}
|
}
|
||||||
} elseif ($action == 'swapstatut' && $user->rights->resource->write) {
|
} elseif ($action == 'swapstatut' && $user->rights->resource->write) {
|
||||||
|
// Toggle the status of a contact
|
||||||
// Toggle the status of a contact
|
|
||||||
$result = $object->swapContactStatus(GETPOST('ligne', 'int'));
|
$result = $object->swapContactStatus(GETPOST('ligne', 'int'));
|
||||||
} elseif ($action == 'deletecontact' && $user->rights->resource->write) {
|
} elseif ($action == 'deletecontact' && $user->rights->resource->write) {
|
||||||
|
// Erase a contact
|
||||||
// Erase a contact
|
|
||||||
$result = $object->delete_contact(GETPOST('lineid', 'int'));
|
$result = $object->delete_contact(GETPOST('lineid', 'int'));
|
||||||
|
|
||||||
if ($result >= 0) {
|
if ($result >= 0) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user