IMAmuseum / tap-cms

Authoring tools for the TAP mobile application software platform, built on top of Drupal. Learn more about the project at TAPintoMuseums.org.
https://github.com/IMAmuseum/tap-cms/wiki
GNU General Public License v3.0
24 stars 8 forks source link

XML loaded by preview tool has an extra element not in the schema #26

Closed ebachta closed 12 years ago

ebachta commented 12 years ago

<div class='dev-query'></div> is being added by the devel module

ebachta commented 12 years ago

http://drupal.org/node/847480

ebachta commented 12 years ago

The following patch should resolve the issue:

diff --git a/devel.module b/devel.module
index 709d994..646da9b 100644
--- a/devel.module
+++ b/devel.module
@@ -1096,7 +1096,7 @@ function devel_shutdown_summary($queries) {

   $output .= devel_shutdown_memory();

-  if ($output) {
+  if (trim($output) != false) {
     return '<div class="dev-query">' . $output . '</div>';
   }
 }