projects
/
fa-stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9961f2d
)
PHP 8 Bug. Deprecated null value in parameter.
author
Joe
<joe.hunt.consulting@gmail.com>
Fri, 3 Jun 2022 09:00:26 +0000
(11:00 +0200)
committer
Joe
<joe.hunt.consulting@gmail.com>
Fri, 3 Jun 2022 09:00:26 +0000
(11:00 +0200)
reporting/includes/class.graphic.inc
patch
|
blob
|
history
diff --git
a/reporting/includes/class.graphic.inc
b/reporting/includes/class.graphic.inc
index c4bc69f6abb79b025b999e8490a9bec32771df51..834ca37246c432f2c42b13c49e54a9fbedf62385 100644
(file)
--- a/
reporting/includes/class.graphic.inc
+++ b/
reporting/includes/class.graphic.inc
@@
-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];
}