Fixed warning on pages without default focus
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Mon, 23 Jun 2008 20:57:15 +0000 (20:57 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Mon, 23 Jun 2008 20:57:15 +0000 (20:57 +0000)
includes/ui/ui_controls.inc

index 2fc434be64bc2ab95b2609c2ec58374ee0bf5659..09b6e0e673b0f18af01ebfbe30316ee70ee884e7 100644 (file)
@@ -28,7 +28,7 @@ function end_form($breaks=0)
 {
        if ($breaks)
                br($breaks);
-       echo "<input type=\"hidden\" name=\"_focus\" value=\"".$_POST['_focus']."\">\n";
+       echo "<input type=\"hidden\" name=\"_focus\" value=\"".get_post('_focus')."\">\n";
        echo "</form>\n";
 }