From 0b1e46901b94bb3b6cf4efc9cec36b8995683c1d Mon Sep 17 00:00:00 2001 From: chriskl Date: Wed, 26 Nov 2003 06:06:49 +0000 Subject: [PATCH] disallow creating a view based on results of a report (because no schema is set) --- display.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/display.php b/display.php index 18288311..4adef2a1 100644 --- a/display.php +++ b/display.php @@ -9,7 +9,7 @@ * @param $return_desc The return link name * @param $page The current page * - * $Id: display.php,v 1.31 2003/11/10 14:22:23 chriskl Exp $ + * $Id: display.php,v 1.32 2003/11/26 06:06:49 chriskl Exp $ */ // Include application functions @@ -348,8 +348,9 @@ urlencode($_REQUEST['query']), "\">{$lang['strcreatereport']}\n"; } // Create view and download - if (isset($_REQUEST['query']) && isset($rs) && is_object($rs) && $rs->recordCount() > 0) { - echo " | recordCount() > 0) { + // Report views don't set a schema, so we need to disable create view in that case + if (isset($_REQUEST['schema'])) echo " | href}\">{$lang['strcreateview']}\n"; echo " | href}\">{$lang['strdownload']}\n"; -- 2.39.5