]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix search dialog for categories
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 8 Nov 2010 18:43:40 +0000 (21:43 +0300)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 8 Nov 2010 18:43:40 +0000 (21:43 +0300)
modules/popup-dialog.php

index d68bd1db71d5c31a2e905f2fce394754c8e71dc7..28f954436cc61c4545e401e397d95ccab81d7207 100644 (file)
 
                        #$active_feed_id = db_escape_string($_REQUEST["param"]);
 
-                       $params = split(":", db_escape_string($_REQUEST["param"]));
+                       $params = explode(":", db_escape_string($_REQUEST["param"]), 2);
 
                        $active_feed_id = sprintf("%d", $params[0]);
-                       $is_cat = $params[1] == "true";
+                       $is_cat = (bool) $params[1];
 
                        print "<div class=\"dlgSec\">".__('Look for')."</div>";