fix some email stuff

This commit is contained in:
blackc2004
2016-03-18 18:53:41 -07:00
parent de75f58e62
commit 80be7780d8
4 changed files with 81 additions and 29 deletions
+5 -1
View File
@@ -44,7 +44,11 @@ else {
if ($email_uuid != '') {
$sql = "delete from v_emails ";
$sql .= "where email_uuid = '".$email_uuid."' ";
$sql .= "and domain_uuid = '".$domain_uuid."' ";
if (permission_exists('emails_all') && $_REQUEST['showall'] == 'true') {
$sql .= "";
} else {
$sql .= "and domain_uuid = '".$domain_uuid."' ";
}
$prep_statement = $db->prepare(check_sql($sql));
$prep_statement->execute();
unset($sql, $prep_statement);