summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--panels_page/panels_page.read.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/panels_page/panels_page.read.inc b/panels_page/panels_page.read.inc
index 36fda4a..fc4b0cd 100644
--- a/panels_page/panels_page.read.inc
+++ b/panels_page/panels_page.read.inc
@@ -75,8 +75,8 @@ function panels_page_load($id, $load_display = FALSE) {
}
$where = is_numeric($id) ? 'pid = %d' : "name = '%s'";
- $page = db_fetch_object(db_query("SELECT * FROM {panels_page} WHERE $where", $id);
-
+ $page = db_fetch_object(db_query("SELECT * FROM {panels_page} WHERE $where", $id));
+
if (!$page) {
$defaults = panels_page_default_panels();
if (isset($defaults[$id])) {