Browse code

bugfix: Datenbankfehler beim ändern der Aliasoptionen

Bernd Wurst authored on 16/06/2019 20:58:42
Showing 1 changed files
... ...
@@ -30,7 +30,7 @@ if (isset($_GET['aliaswww'])) {
30 30
     $old_options = explode(',', $alias['options']);
31 31
     $new_options = array();
32 32
     foreach ($old_options as $op) {
33
-        if ($op != 'aliaswww') {
33
+        if ($op !== '' && $op != 'aliaswww') {
34 34
             array_push($new_options, $op);
35 35
         }
36 36
     }
... ...
@@ -58,7 +58,7 @@ if (isset($_GET['forward'])) {
58 58
     $old_options = explode(',', $alias['options']);
59 59
     $new_options = array();
60 60
     foreach ($old_options as $op) {
61
-        if ($op != 'forward') {
61
+        if ($op !== '' && $op != 'forward') {
62 62
             array_push($new_options, $op);
63 63
         }
64 64
     }