tbrehm
2008-12-27 cfa9da8cae6cc75052cb6fbce432033fc9c3b87b
Fixed a bug in username and database name prefix.
2 files modified
8 ■■■■■ changed files
interface/web/sites/database_edit.php patch | view | raw | blame | history
interface/web/sites/tools.inc.php 8 ●●●●● patch | view | raw | blame | history
interface/web/sites/database_edit.php
interface/web/sites/tools.inc.php
@@ -58,7 +58,11 @@
        $client_group_id = $_SESSION["s"]["user"]["default_group"];
    } else {
        // Get the group-id from the data itself
        if(isset($dataRecord['client_group_id'])) {
        $client_group_id = $dataRecord['client_group_id'];
          } else {
            $client_group_id = $dataRecord['sys_groupid'];
          }
    }
    /* get the name of the client */
    $tmp = $app->db->queryOneRecord("SELECT name FROM sys_group WHERE groupid = " . $client_group_id);
@@ -76,7 +80,11 @@
        $client_group_id = $_SESSION["s"]["user"]["default_group"];
    } else {
        // Get the group-id from the data itself
        if(isset($dataRecord['client_group_id'])) {
        $client_group_id = $dataRecord['client_group_id'];
          } else {
            $client_group_id = $dataRecord['sys_groupid'];
          }
    }
    /* get the name of the client */
    $tmp = $app->db->queryOneRecord("SELECT client_id FROM sys_group WHERE groupid = " . $client_group_id);