diff options
author | Andrew Dolgov <[email protected]> | 2007-05-14 09:16:48 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2007-05-14 09:16:48 +0100 |
commit | a4919a16638bc07cc9c6715a7cab679497264c83 (patch) | |
tree | 1ac122f428d821391e513a31321699017acd7ebe | |
parent | 5ede560f8ceff1d2eb5d2dcd2bd7432acfa18f73 (diff) |
do not test empty label expressions
-rw-r--r-- | modules/pref-labels.php | 5 | ||||
-rw-r--r-- | 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 "<div>Error: SQL expression is blank.</div>"; + return; + } + print "<div>"; 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; */ } |