Code

Replaced config->search with get_cfg_value
[gosa.git] / gosa-core / include / exporter / class_pdfExporter.inc
index f1c5f8918d36f4fa62d23a7e4b360f56f5fd38c5..d1c836e79e0296e0db033ac865126d856744bd59 100644 (file)
@@ -1,7 +1,10 @@
 <?php
+// Try to load PDF library
+@include_once('fpdf/fpdf.php');
 
 // Load supporter class only if FPDF is loaded
-if(class_exists('FPDF')) {
+$classes= get_declared_classes();
+if(in_array('FPDF', $classes)) {
   include('class_PDF.inc');
 }