From ba804584efbb1b9687b5933b32107f37c30e4836 Mon Sep 17 00:00:00 2001 From: cottton Date: Wed, 6 Sep 2017 01:18:12 +0200 Subject: [PATCH] Fixing Undefined index: height in 437 --- laff-pack.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/laff-pack.php b/laff-pack.php index 17dba0b..df4824a 100644 --- a/laff-pack.php +++ b/laff-pack.php @@ -63,6 +63,7 @@ function __construct($boxes = null, $container = null) $this->container_dimensions['width'] = $container['width']; // Note: do NOT set height, it will be calculated on-the-go + $this->container_dimensions['height'] = 0; } } } @@ -97,6 +98,7 @@ function pack($boxes = null, $container = null) { $this->container_dimensions['width'] = $container['width']; // Note: do NOT set height, it will be calculated on-the-go + $this->container_dimensions['height'] = 0; } }