Fixed warning on pages without default focus
[fa-stable.git] / 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";
 }