From 84ee875a9be3efc624720e1d919630926656e184 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 18 Mar 2006 21:20:43 +0000 Subject: [PATCH] Better support for having blank values --- printer_css.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/printer_css.php b/printer_css.php index 3c4fa75..cea3f42 100644 --- a/printer_css.php +++ b/printer_css.php @@ -331,7 +331,7 @@ HTML; */ function fetch_value($descriptor, $property) { - if ($this->customdata["$descriptor"]["$property"] == '') + if (!isset($this->customdata["$descriptor"]["$property"])) { return $this->masterdata["$descriptor"]["$property"]; } @@ -389,7 +389,7 @@ HTML; continue; } // the given matches the custom -- no change - else if ($this->customdata["$descriptor$sel"]["$prop"] == $value) + else if (isset($this->customdata["$descriptor$sel"]["$prop"]) AND $this->customdata["$descriptor$sel"]["$prop"] == $value) { continue; } @@ -479,7 +479,7 @@ HTML; $output .= "\n\n$selector\n{"; foreach ($props AS $name => $value) { - if ($name != 'extra') + if ($name != 'extra' AND $value != '') { $output .= "\n\t$name: $value;"; } -- 2.22.5