]> git.wh0rd.org Git - tt-rss.git/commitdiff
do not test empty label expressions
authorAndrew Dolgov <fox@madoka.spb.ru>
Mon, 14 May 2007 08:16:48 +0000 (09:16 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Mon, 14 May 2007 08:16:48 +0000 (09:16 +0100)
modules/pref-labels.php
utility.css

index 5260e7659661e7929a84c3d632cbb61011d7dcf3..5653427003d4026a3299519db3d110948123daf9 100644 (file)
                        $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);
index 54e5b0552f33431bb9d810a739c2273da33a7e4b..d6cac4f22f787f626550a7f44346a81810c220b7 100644 (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; */
 }