Disabled min- & max-display in userdefined-plots, if there is at least not one numeric value.

git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@562 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
mr_p
2010-01-22 10:30:01 +00:00
parent 3dca3e7112
commit 3521a1cebd

View File

@@ -269,8 +269,10 @@ if ($gnuplottype=='piri' or $gnuplottype=='fs20')
$txtcolor=$bg3p;
$fontsize=7;
if (is_numeric($mintemp) || is_numeric($maxtemp)) {
$text="min= $mintemp max= $maxtemp";
ImageTTFText ($im, $fontsize, 0, 67-$XcorrectMainTextUSERDEF, 49, $txtcolor, $fontttf, $text);
}
$text=$resultreverse[0][0];
ImageTTFText ($im, $fontsize, 0, $imgmaxxuserdef-127, 15, $txtcolor, $fontttf, $text);
#############################################################################