summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-01-27 18:51:51 +0000
committerDries Buytaert <dries@buytaert.net>2006-01-27 18:51:51 +0000
commit9b47a147f352d7706bf4bf22f81814f40773b99a (patch)
tree03f79641d7339f9c55ab67bd9935c7b52135480f /index.php
parentc04633361002df67a04458ac86ba449001eb9287 (diff)
downloadbrdo-9b47a147f352d7706bf4bf22f81814f40773b99a.tar.gz
brdo-9b47a147f352d7706bf4bf22f81814f40773b99a.tar.bz2
- 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 df07fff67..e38404e61 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;