Fixed error handling in debug mode
[fa-stable.git] / includes / ui / ui_lists.inc
index 8f10f156f5913bc79bb114506afa9835cb946a2e..6362fe74a51e444bbf6b3e9a0ff7e829b091360b 100644 (file)
@@ -243,7 +243,7 @@ $opts = array(              // default options
                                $search_submit)."\n";
                }
        }
-       default_focus($search_box ? $search_box : $name);
+       default_focus(($search_box && $by_id) ? $search_box : $name);
        $str = $selector;
        if ($search_box && $opts['cells'])
                echo ($edit_entry!='' ? "<td>$edit_entry</td>" : '')."<td>$selector</td>";