summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorDries Buytaert2006-01-27 18:51:51 (GMT)
committerDries Buytaert2006-01-27 18:51:51 (GMT)
commit9b47a147f352d7706bf4bf22f81814f40773b99a (patch)
tree03f79641d7339f9c55ab67bd9935c7b52135480f /index.php
parentc04633361002df67a04458ac86ba449001eb9287 (diff)
- Patch #44993 by markus, jaza, dopry et al: blank page when menu callbacks generate empty pages.
Diffstat (limited to 'index.php')
-rw-r--r--index.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/index.php b/index.php
index df07fff..e38404e 100644
--- a/index.php
+++ b/index.php
@@ -24,7 +24,8 @@ switch ($return) {
drupal_site_offline();
break;
default:
- if (!empty($return)) {
+ // Print any value (including an empty string) except NULL or undefined:
+ if (isset($return)) {
print theme('page', $return);
}
break;