Bernd Wurst authored on22/03/2017 09:03:56
Showing1 changed files
... ...
@@ -383,6 +383,9 @@ function save_vmail_account($account)
383 383
   {
384 384
     $forward_query = "INSERT INTO mail.vmail_forward (account,destination) VALUES (:account, :destination)";
385 385
     for ($i=0;$i < count($account['forwards']); $i++) { 
386
+      if (! isset($account['forwards'][$i]['destination'])) {
387
+        continue;
388
+      }
386 389
       db_query($forward_query, array(":account" => $id, ":destination" => $account['forwards'][$i]['destination']));
387 390
     }
388 391
   }