summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: edfdabd)
raw | patch | inline | side by side (parent: edfdabd)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 15 Apr 2008 07:34:42 +0000 (07:34 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 15 Apr 2008 07:34:42 +0000 (07:34 +0000) |
-Ensure that we always have a valid release selected
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10445 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10445 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/fai/admin/fai/class_faiManagement.inc | patch | blob | history |
diff --git a/gosa-plugins/fai/admin/fai/class_faiManagement.inc b/gosa-plugins/fai/admin/fai/class_faiManagement.inc
index 114ac36ecfffd24cef8d70bb771d5f94e5ca05f2..2d6c5e66d148d47421af5ea5d49a5122d02f390b 100644 (file)
ksort($ret);
$ret = array_flip($ret);
+ /* Ensure that we have a valid release selected */
+ if(!in_array($this->fai_release,$ret)){
+ $this->fai_release = $this->fai_base;
+ }
+
return ($ret);
}