]> git.datanom.net - qtadmin.git/blobdiff - quarantine.php
fix indentation
[qtadmin.git] / quarantine.php
index be8941715639c2ec8b439357d58f9fe24e943b5c..918637872f30a30e34d9015841dfe120c7ee0ad3 100644 (file)
                $query = array();
                $error = array();
                foreach ($marked as $mail_id) {
-            $query[] = "delete from msgs where mail_id = '$mail_id'";
-            $query[] = "delete from msgrcpt where mail_id = '$mail_id'";
-            $query[] = "delete from quarantine where mail_id = '$mail_id'";
-               $success = $DB->update($query);
+                       $query[] = "delete from msgs where mail_id = '$mail_id'";
+                       $query[] = "delete from msgrcpt where mail_id = '$mail_id'";
+                       $query[] = "delete from quarantine where mail_id = '$mail_id'";
+                       $success = $DB->update($query);
                if (! $success) {
-               $error[] = $mail_id;
+                               $error[] = $mail_id;
                        }
                }
                if (count($error) > 0) {
                        $str = implode(', ', $error);
-               error("The following messages was not purged [$str], contact administrator");
-               exit;
+                       error("The following messages was not purged [$str], contact administrator");
+                       exit;
                }
                header('Location: index.php');
        } else if ($loggedIn) {
-        header('Location: index.php');
+               header('Location: index.php');
     } else {
         header('Location: auth.php');
     }
This page took 0.054909 seconds and 5 git commands to generate.