Fix for MDL-9669 : make it possible to specify 0 as cellpadding and cellspacing

This commit is contained in:
scyrma
2008-01-16 07:37:31 +00:00
parent 870c9c02b3
commit 676174682e
+2 -2
View File
@@ -3790,11 +3790,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';
}