Unstable release 2.
[fa-stable.git] / admin / create_coy.php
index 85579e0f92f1c37eae2ac47247911a492ed94bef..2730b7cfd130fdbde716f02e522fdb5740aef8b2 100644 (file)
@@ -52,7 +52,7 @@ function handle_submit()
        $db_connections[$id]['dbname'] = $_POST['dbname'];
        if (isset($_GET['ul']) && $_GET['ul'] == 1)
        {
-               if ($_POST['tbpref'] == 1)
+               if (is_numeric($_POST['tbpref']) && $_POST['tbpref'] == 1)
                {
                        $db_connections[$id]['tbpref'] = $tb_pref_counter."_";
                        $new = true;