Marius Burkard
2016-02-11 a7796bec1be01b51f400e9a3a698535b12b636aa
interface/web/mail/mail_transport_edit.php
@@ -136,11 +136,11 @@
      if($_SESSION["s"]["user"]["typ"] != 'admin') { // if user is not admin
         // Get the limits of the client
         $client_group_id = $app->functions->intval($_SESSION["s"]["user"]["default_group"]);
         $client = $app->db->queryOneRecord("SELECT limit_mailrouting FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id");
         $client = $app->db->queryOneRecord("SELECT limit_mailrouting FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = ?", $client_group_id);
         // Check if the user may add another transport.
         if($this->id == 0 && $client["limit_mailrouting"] >= 0) {
            $tmp = $app->db->queryOneRecord("SELECT count(transport_id) as number FROM mail_transport WHERE sys_groupid = $client_group_id");
            $tmp = $app->db->queryOneRecord("SELECT count(transport_id) as number FROM mail_transport WHERE sys_groupid = ?", $client_group_id);
            if($tmp["number"] >= $client["limit_mailrouting"]) {
               $app->tform->errorMessage .= $app->tform->wordbook["limit_mailrouting_txt"]."<br>";
            }