From 2300320e9eda435ad31593c8b2a2583cd94bb221 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 9 Jul 2010 10:20:34 +0000 Subject: [PATCH] Fixed undefined index. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18975 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/fai/admin/fai/class_faiPackage.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/gosa-plugins/fai/admin/fai/class_faiPackage.inc b/gosa-plugins/fai/admin/fai/class_faiPackage.inc index 0d797a13d..619565883 100644 --- a/gosa-plugins/fai/admin/fai/class_faiPackage.inc +++ b/gosa-plugins/fai/admin/fai/class_faiPackage.inc @@ -219,6 +219,7 @@ class faiPackage extends plugin // Check all splitted packages for valid package names $add_packages = preg_split( "/[\s,]+/", get_post('addPpkgsText'), -1, PREG_SPLIT_NO_EMPTY ); if( is_array($add_packages) ) { + $valid_packages = array(); $invalid_packages = array(); foreach ($add_packages as $value) { if(!preg_match( "/^[a-z0-9][-0-9a-z+\.]+$/",$value)){ -- 2.30.2