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

This commit is contained in:
scyrma
2008-01-16 06:29:03 +00:00
parent f845a2fba9
commit e52c8d89f6
+2 -2
View File
@@ -4708,11 +4708,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';
}