Hanno Böck commited on 2017-12-01 12:24:59
              Zeige 1 geänderte Dateien mit 4 Einfügungen und 3 Löschungen.
            
| ... | ... | 
                      @@ -53,11 +53,12 @@ if ($_GET['action'] == 'edit')  | 
                  
| 53 | 53 | 
                        $account['domain'] = (int) $_POST['domain'];  | 
                    
| 54 | 54 | 
                        }  | 
                    
| 55 | 55 | 
                        $account['password'] = $_POST['password'];  | 
                    
| 56 | 
                        - if (($account['password'] == '') && ($_POST['mailbox'] == 'yes'))  | 
                    |
| 56 | 
                        +  | 
                    |
| 57 | 
                        + if (($account['password'] == '') && (isset($_POST['mailbox']) && $_POST['mailbox'] == 'yes'))  | 
                    |
| 57 | 58 | 
                               system_failure("Sie haben ein leeres Passwort eingegeben!");
                       | 
                    
| 58 | 59 | 
                        if ($_POST['password'] == '**********')  | 
                    
| 59 | 60 | 
                        $account['password'] = '';  | 
                    
| 60 | 
                        - if ($_POST['mailbox'] != 'yes')  | 
                    |
| 61 | 
                        + if (isset($_POST['mailbox']) && $_POST['mailbox'] != 'yes')  | 
                    |
| 61 | 62 | 
                             {
                       | 
                    
| 62 | 63 | 
                        $account['password'] = NULL;  | 
                    
| 63 | 64 | 
                        }  | 
                    
| ... | ... | 
                      @@ -167,7 +168,7 @@ if ($_GET['action'] == 'edit')  | 
                  
| 167 | 168 | 
                             if (count($account['forwards']) == 0) system_failure("Bitte mindestens eine Weiterleitungsadresse angeben.");
                       | 
                    
| 168 | 169 | 
                        }  | 
                    
| 169 | 170 | 
                         | 
                    
| 170 | 
                        - if ((isset($_POST['forward']) && $_POST['forward']!='yes') && ($_POST['mailbox']!='yes'))  | 
                    |
| 171 | 
                        + if ((isset($_POST['forward']) && $_POST['forward']!='yes') && (isset($_POST['mailbox']) && $_POST['mailbox']!='yes'))  | 
                    |
| 171 | 172 | 
                             system_failure("Entweder eine Mailbox oder eine Weiterleitung muss angegeben werden!");
                       | 
                    
| 172 | 173 | 
                         | 
                    
| 173 | 174 | 
                        DEBUG($account);  | 
                    
| 174 | 175 |