Code

Fixed Problem with saving new ACL for a tagged department.
[gosa.git] / gosa-core / include / php_setup.inc
index b687c5fba340194ae3c9cefcf22b010d1161c29b..c93d40f9b9d5cbd76f53a2399cd59864db5818bf 100644 (file)
@@ -247,6 +247,11 @@ function dummy_error_handler()
 {
 }
 
+/* Bail out for incompatible/old PHP versions */
+if (!version_compare(phpversion(),"5.2.0",">=")){
+  echo "PHP version needs to be 5.2.0 or above to run GOsa. Aborted.";
+  exit();
+}
 
 /* Set timezone */
 date_default_timezone_set("GMT");
@@ -275,5 +280,6 @@ $smarty->template_dir = $BASE_DIR.'/ihtml/';
 $smarty->caching= false;
 $smarty->php_handling= SMARTY_PHP_REMOVE;
 
+
 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
 ?>