0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-19 19:22:14 +02:00

AdminHandler.php:

- implement delete()   (untested!)


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1456 a1433add-5e2c-0410-b055-b7f2511e0802
This commit is contained in:
Christian Boltz 2013-04-27 20:31:07 +00:00
parent 66ab8fb290
commit 61dfcb9192

View File

@ -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);