Commit 6881cc9a authored by Dries's avatar Dries

- Patch #10202 by Ax: don't emit an erroneous whitespace when no table headers are provided.  Makes for clean XHTML.
parent 8b8a2bd6
......@@ -127,7 +127,7 @@ function list_theme_engines($refresh = FALSE) {
if (!$list) {
$list = array();
$result = db_query("SELECT * FROM {system} where type = 'theme_engine' AND status = '1' ORDER BY name");
$result = db_query("SELECT * FROM {system} WHERE type = 'theme_engine' AND status = '1' ORDER BY name");
while ($engine = db_fetch_object($result)) {
if (file_exists($engine->filename)) {
$list[$engine->name] = $engine;
......@@ -591,7 +591,7 @@ function theme_submenu($links) {
*/
function theme_table($header, $rows, $attributes = NULL) {
$output = '<table '. drupal_attributes($attributes) .">\n";
$output = '<table'. drupal_attributes($attributes) .">\n";
// Format the table header:
if (is_array($header)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment