Rerun of /admin/create_coy.php
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Mon, 28 May 2012 06:43:50 +0000 (08:43 +0200)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Mon, 28 May 2012 06:43:50 +0000 (08:43 +0200)
admin/create_coy.php

index 5e084fa823154df67000c7d34c9316351db54beb..0ba1109047556c24d6d8068be1306c9bebd1a5d6 100644 (file)
@@ -131,7 +131,7 @@ function handle_submit()
                                display_error(_('Cannot create new company due to bugs in sql file.'));
                                $error = true;
                        } 
-                       if (!$error)
+                       else
                        {
                                if (!isset($_POST['admpassword']) || $_POST['admpassword'] == "")
                                        $_POST['admpassword'] = "password";