summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/classes.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/php/include/classes.inc.php')
-rw-r--r--frontends/php/include/classes.inc.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/frontends/php/include/classes.inc.php b/frontends/php/include/classes.inc.php
index 732be9c5..064d32c6 100644
--- a/frontends/php/include/classes.inc.php
+++ b/frontends/php/include/classes.inc.php
@@ -131,7 +131,11 @@
function setWidth($width)
{
- $this->sizeX=$width;
+// Avoid sizeX==0, to prevent division bu zero later
+ if($width>0)
+ {
+ $this->sizeX=$width;
+ }
}
function setHeight($height)