]> wagnertech.de Git - timetracker.git/blobdiff - dbinstall.php
Added an environment check for enabled libxml to address issue #67.
[timetracker.git] / dbinstall.php
index 76a257cabc3db3c4f6ce233b5776af7d68bb782a..a3cdd9cc58cdd210cd26f6f875e5919f5009935f 100644 (file)
@@ -131,6 +131,11 @@ if ($request->isGet()) {
     }
   }
 
+  // Check is libxml is enabled (which is a PHP default).
+  if (!function_exists('libxml_clear_errors')) {
+    echo('<font color="red">Error: libxml is not enabled. It is required for import group operation (to parse XML).</font><br>');
+  }
+
   // Check database access.
   require_once('MDB2.php');
   $conn = MDB2::connect(DSN);