From: Andrew Dolgov Date: Mon, 14 May 2007 08:16:48 +0000 (+0100) Subject: do not test empty label expressions X-Git-Tag: schema_freeze_for_1.2.11~58 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=a4919a16638bc07cc9c6715a7cab679497264c83;p=tt-rss.git do not test empty label expressions --- diff --git a/modules/pref-labels.php b/modules/pref-labels.php index 5260e765..56534270 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 54e5b055..d6cac4f2 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; */ }