From a4919a16638bc07cc9c6715a7cab679497264c83 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 14 May 2007 09:16:48 +0100 Subject: [PATCH] do not test empty label expressions --- modules/pref-labels.php | 5 +++++ utility.css | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/modules/pref-labels.php b/modules/pref-labels.php index 5260e7659..565342700 100644 --- a/modules/pref-labels.php +++ b/modules/pref-labels.php @@ -81,6 +81,11 @@ $expr = db_unescape_string(trim($_GET["expr"])); $descr = db_unescape_string(trim($_GET["descr"])); + if (!$expr) { + print "
Error: SQL expression is blank.
"; + return; + } + print "
"; error_reporting(0); diff --git a/utility.css b/utility.css index 54e5b0552..d6cac4f22 100644 --- a/utility.css +++ b/utility.css @@ -64,15 +64,15 @@ div.error { h1 { color : #88b0f0; font-size : 16pt; - border-width : 0px 0px 1px 0px; +/* border-width : 0px 0px 1px 0px; border-color : black; - border-style : solid; + border-style : solid; */ } h2 { color : #88b0f0; font-size : 14pt; - border-width : 0px 0px 1px 0px; +/* border-width : 0px 0px 1px 0px; border-color : black; - border-style : solid; + border-style : solid; */ }