From: scyrma Date: Wed, 16 Jan 2008 07:39:03 +0000 (+0000) Subject: Fix for MDL-9669 : make it possible to specify 0 as cellpadding and cellspacing X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=9e7386879395cea8931bc2a4a97bbe7d9c9a34f9;p=moodle.git Fix for MDL-9669 : make it possible to specify 0 as cellpadding and cellspacing --- 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'; }