AdminHandler.php:

- implement delete()   (untested!)


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1456 a1433add-5e2c-0410-b055-b7f2511e0802
pull/2/head
Christian Boltz 12 years ago
parent 66ab8fb290
commit 61dfcb9192

@ -179,11 +179,8 @@ class AdminHandler extends PFAHandler {
return false;
}
$this->errormsg[] = '*** Admin deletion not implemented yet ***';
return false; # XXX function aborts here until TODO below is implemented! XXX
$result = db_delete('domain_admins', $this->id_field, $this->id); # TODO: check for errors?
# TODO: delete from domain_admins before deleting the admin
# TODO: move the needed code from delete.php here
$result = db_delete($this->db_table, $this->id_field, $this->id);
if ( $result == 1 ) {
list(/*NULL*/,$domain) = explode('@', $this->id);

Loading…
Cancel
Save