From 80bdc8f253c37648d8ef2dc5ae25f91dbb307745 Mon Sep 17 00:00:00 2001 From: Earl Miles Date: Tue, 7 Oct 2008 21:39:02 +0000 Subject: [PATCH] Fix typo --- panels_page/panels_page.read.inc | 4 ++-- 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])) { -- 1.7.4.1