]> andersk Git - sql-web.git/blobdiff - lib/proc.lib.php
bug fix: signup/db-create for class lockers
[sql-web.git] / lib / proc.lib.php
index 27f9d87b442e62ba39a144a4832b8fdf5e90b849..f9ebc8d6bd9a659a1c673aedc9867f0cdb99274a 100644 (file)
@@ -5,7 +5,8 @@ require_once('mitsql.lib.php');
 define('MAXDBS', 20);
 
 class proc {
-       static function newdb(&$User, $i_newdb) {
+       static function newdb(&$User, &$i_newdb) {
+               // return through $i_newdb the full name of the created db
                $msg1 = $err1 = array();
                $uname = $User->getUsername();
                $uname = str_replace('.','',$uname);
@@ -25,6 +26,7 @@ class proc {
                } else {
                        $msg1[] = 'Database `'.$dbname.'` created.';
                }
+               $i_newdb = $dbname;
                return array($msg1, $err1);
        }
        static function drop(&$User, $i_drop) {
This page took 0.099729 seconds and 4 git commands to generate.