diff options
Diffstat (limited to 'frontends/php/chart2.php')
| -rw-r--r-- | frontends/php/chart2.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/frontends/php/chart2.php b/frontends/php/chart2.php index 9c9e83a2..2dd2652e 100644 --- a/frontends/php/chart2.php +++ b/frontends/php/chart2.php @@ -30,7 +30,14 @@ $result=DBselect("select name,width,height from graphs where graphid=".$HTTP_GET_VARS["graphid"]); $name=DBget_field($result,0,0); - $width=DBget_field($result,0,1); + if(isset($HTTP_GET_VARS["x"])) + { + $width=$HTTP_GET_VARS["x"]; + } + else + { + $width=DBget_field($result,0,1); + } $height=DBget_field($result,0,2); $sizeX=$width; |
