summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Boyer2008-10-08 03:32:37 (GMT)
committerSam Boyer2008-10-08 03:32:37 (GMT)
commite64edfec5183cbc7298a1aa2e900b339a239577b (patch)
treeb7fb996b6cfcad1096471a032f9503566998923f
parentac2f772f5d5d48a4489dd9d83720358148fdbcde (diff)
Fix to panels_page_default_panels() to prevent returning a non-array
-rw-r--r--panels_page/panels_page.read.inc5
1 files changed, 1 insertions, 4 deletions
diff --git a/panels_page/panels_page.read.inc b/panels_page/panels_page.read.inc
index 13f4c7b..97821eb 100644
--- a/panels_page/panels_page.read.inc
+++ b/panels_page/panels_page.read.inc
@@ -126,15 +126,12 @@ function panels_page_loaded_cache($id, $panel_page = NULL) {
*/
function panels_page_default_panels() {
$panels = module_invoke_all('default_panel_pages');
+ $return = array();
if (is_array($panels)) {
foreach ($panels as $panel_page) {
$return[$panel_page->name] = $panel_page;
}
}
- else {
- $return = array();
- }
-
return $return;
}