Rerun
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Thu, 8 Apr 2010 22:39:34 +0000 (22:39 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Thu, 8 Apr 2010 22:39:34 +0000 (22:39 +0000)
admin/create_coy.php

index a0d4c61cf58ebc3cc4f9aba085b6bfea20443e96..672a0c14ece19c060fd6045ee7bf586e74da9778 100644 (file)
@@ -151,7 +151,7 @@ function handle_submit()
                        {
                                display_error(_("Error connecting to Database: ") . $conn['dbname'] . _(", Please correct it"));
                                $error = true;
-                       } else {
+                       } elseif ($_POST['admpassword'] != "") {
                                db_query("UPDATE ".$conn['tbpref']."users set password = '".md5($_POST['admpassword']). "' WHERE user_id = 'admin'");
                        }
                }