Code

- fix for debian bug 535872
[gosa.git] / setup / class_setupStep_Checks.inc
index 366ab1b2eebc882dc1bf7cc4c29f84606879828d..402da6cbf69945ccd2177ec8c2de96ad8911cba1 100644 (file)
@@ -108,6 +108,14 @@ class Step_Checks extends setup_step
     $M = TRUE;
     $this->basic_checks[] = array("NAME" => $N , "DESC" => $D , "RESULT" => $R , "SOLUTION" => $S , "MUST" => $M );
 
+    /* Is imap module available */
+    $N = _("Checking for multi byte support");
+    $D = _("The multi byte string support is required by some plugins.");
+    $S = _("Please compile php with enabled multi byte support '--enable-mbstring'.");
+    $R = is_callable("mb_strlen");
+    $M = TRUE;
+    $this->basic_checks[] = array("NAME" => $N , "DESC" => $D , "RESULT" => $R , "SOLUTION" => $S , "MUST" => $M );
+
     /* Check getacl in imap module */
     $N = _("Checking for getacl in IMAP implementation");
     $D = _("The getacl support is needed to handle shared folder permissions. Old IMAP extensions are not capable of reading acl's. You need a recent PHP version to use this feature.");
@@ -218,7 +226,7 @@ class Step_Checks extends setup_step
     $N = "implicit_flush = <b>"._("Off")."</b>";
     $D = _("This option influences the PHP output handling. Turn this Option off, to increase performance.");
     $S = _("Search for 'implicit_flush' in your php.ini and set it to 'Off'."); 
-    $R = ini_get('implicit_flush');
+    $R = !ini_get('implicit_flush');
     $M = FALSE;
     $this->config_checks[] = array("NAME" => $N , "DESC" => $D , "RESULT" => $R , "SOLUTION" => $S , "MUST" => $M );