Fix for MDL-9669 : make it possible to specify 0 as cellpadding and cellspacing
This commit is contained in:
+2
-2
@@ -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';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user