]> git.pld-linux.org Git - projects/buildlogs.git/commitdiff
Silence php notices.
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Fri, 9 Mar 2018 10:14:35 +0000 (11:14 +0100)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Fri, 9 Mar 2018 10:14:35 +0000 (11:14 +0100)
index.php

index 11558cdd43afdb0079b6bad379cc4e0a931def1e..357a9f18736d8617d571d34d29eb1e415507718b 100644 (file)
--- a/index.php
+++ b/index.php
@@ -1,4 +1,7 @@
 <?php
+if (!function_exists("ob_gzhandler"))
+  die("ob_gzhandler function is missing - install php zlib module");
+
 ob_start("ob_gzhandler", 1);
 $buildlogs_server = "buildlogs.pld-linux.org";
 $url = "index.php";
@@ -17,6 +20,7 @@ $langs["en_US"]["charset"]="ISO-8859-1";
 $langs["pl_PL"]["charset"]="ISO-8859-2";
 
 $lang="en_US";
+$lang_detected="";
 if (isset($_SERVER["HTTP_ACCEPT_LANGUAGE"]))
 {
   $rows=explode(";",$_SERVER["HTTP_ACCEPT_LANGUAGE"]);
@@ -366,6 +370,7 @@ function dump_log($tail)
        $time = "";
        $out_buf = array();
        $out_buf_size = 0;
+       $err_count = 0;
        while (($s = fgets($fd, 102400)) != false) {
 
                $toc_elem = false;
This page took 0.125565 seconds and 4 git commands to generate.