PHP 8 Bug. Deprecated null value in parameter.
authorJoe <joe.hunt.consulting@gmail.com>
Fri, 3 Jun 2022 09:00:26 +0000 (11:00 +0200)
committerJoe <joe.hunt.consulting@gmail.com>
Fri, 3 Jun 2022 09:00:26 +0000 (11:00 +0200)
reporting/includes/class.graphic.inc

index c4bc69f6abb79b025b999e8490a9bec32771df51..834ca37246c432f2c42b13c49e54a9fbedf62385 100644 (file)
@@ -1218,6 +1218,8 @@ class Chart
 
        function string_width($string, $size) 
        {
+               if ($string == NULL)
+                       return $size;
                $p = imageftbbox($size, 0, $this->fontfile, $string);
                return $p[4] - $p[0];
        }