fix intendation
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
@@ -749,7 +749,7 @@ if ($page == 'domains'
|
|||||||
'mod_fcgid_maxrequests' => $mod_fcgid_maxrequests,
|
'mod_fcgid_maxrequests' => $mod_fcgid_maxrequests,
|
||||||
'specialsettings' => $specialsettings,
|
'specialsettings' => $specialsettings,
|
||||||
'registration_date' => $registration_date,
|
'registration_date' => $registration_date,
|
||||||
'termination_date' => $termination_date,
|
'termination_date' => $termination_date,
|
||||||
'issubof' => $issubof,
|
'issubof' => $issubof,
|
||||||
'letsencrypt' => $letsencrypt
|
'letsencrypt' => $letsencrypt
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -24,20 +24,20 @@
|
|||||||
*/
|
*/
|
||||||
function checkMailAccDeletionState($email_addr = null)
|
function checkMailAccDeletionState($email_addr = null)
|
||||||
{
|
{
|
||||||
// example data of task 7: a:2:{s:9:"loginname";s:4:"webX";s:5:"email";s:20:"deleteme@example.tld";}
|
// example data of task 7: a:2:{s:9:"loginname";s:4:"webX";s:5:"email";s:20:"deleteme@example.tld";}
|
||||||
|
|
||||||
// check for task
|
// check for task
|
||||||
$result_tasks_stmt = Database::prepare("
|
$result_tasks_stmt = Database::prepare("
|
||||||
SELECT * FROM `" . TABLE_PANEL_TASKS . "` WHERE `type` = '7' AND `data` LIKE :emailaddr
|
SELECT * FROM `" . TABLE_PANEL_TASKS . "` WHERE `type` = '7' AND `data` LIKE :emailaddr
|
||||||
");
|
");
|
||||||
Database::pexecute($result_tasks_stmt, array(
|
Database::pexecute($result_tasks_stmt, array(
|
||||||
'emailaddr' => "%" . $email_addr . "%"
|
'emailaddr' => "%" . $email_addr . "%"
|
||||||
));
|
));
|
||||||
$num_results = Database::num_rows();
|
$num_results = Database::num_rows();
|
||||||
|
|
||||||
// is there a task for deleting this email account?
|
// is there a task for deleting this email account?
|
||||||
if ($num_results > 0) {
|
if ($num_results > 0) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user