From: hickert Date: Fri, 9 Jul 2010 10:20:34 +0000 (+0000) Subject: Fixed undefined index. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2300320e9eda435ad31593c8b2a2583cd94bb221;p=gosa.git Fixed undefined index. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18975 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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)){