From 9e7386879395cea8931bc2a4a97bbe7d9c9a34f9 Mon Sep 17 00:00:00 2001 From: scyrma Date: Wed, 16 Jan 2008 07:39:03 +0000 Subject: [PATCH] Fix for MDL-9669 : make it possible to specify 0 as cellpadding and cellspacing --- lib/weblib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/weblib.php b/lib/weblib.php index 5389d91841..b6ec9f7c79 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -4683,11 +4683,11 @@ function print_table($table, $return=false) { $table->tablealign = 'center'; } - if (empty($table->cellpadding)) { + if (!isset($table->cellpadding)) { $table->cellpadding = '5'; } - if (empty($table->cellspacing)) { + if (!isset($table->cellspacing)) { $table->cellspacing = '1'; } -- 2.39.5