do not test empty label expressions

This commit is contained in:
Andrew Dolgov 2007-05-14 09:16:48 +01:00
parent 5ede560f8c
commit a4919a1663
2 changed files with 9 additions and 4 deletions

View File

@ -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);

View File

@ -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; */
}