BUG 0000 Changes in new and edit user SOLVED

- Also changes suggested by julio cesar
This commit is contained in:
Alvaro Campos
2012-06-20 19:00:41 -04:00
parent f289ad4ed4
commit e230492bf9
6 changed files with 15 additions and 9 deletions

View File

@@ -1021,12 +1021,13 @@ class System {
if (defined('PATH_DB')) { // if we're on a valid workspace env.
if (empty($wsName)) {
$uriParts = explode('/', getenv("REQUEST_URI"));
if (substr($uriParts[1], 0, 3 ) == 'sys') {
$wsName = substr($uriParts[1], 3);
if (isset($uriParts[1])) {
if (substr($uriParts[1], 0, 3 ) == 'sys') {
$wsName = substr($uriParts[1], 3);
}
}
}
$wsIniFile = PATH_DB . $wsName . PATH_SEP . 'env.ini';
}
}