Browse code

Neue aliase haben keine ID

git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1453 87cf0b9e-d624-0410-a070-f6ee81989793

bernd authored on04/09/2009 12:58:48
Showing1 changed files
... ...
@@ -289,7 +289,7 @@ function save_alias($alias)
289 289
 {
290 290
   if (! is_array($alias))
291 291
     system_failure('$alias kein array!');
292
-  $id = (int) $alias['id'];
292
+  $id = (isset($alias['id']) ? (int) $alias['id'] : 0);
293 293
   $hostname = maybe_null($alias['hostname']);
294 294
   $domain = (int) $alias['domainid'];
295 295
   if ($domain == 0)