refactoring
git-svn-id: svn://ttmath.org/publicrep/cmslu/trunk@523 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -22,13 +22,13 @@ long Content::PostFunDefaultParsePath()
|
||||
Item * pdir, * pdir2;
|
||||
long defaultid = -1;
|
||||
|
||||
std::string & path = request.PostVar("defaultitem");
|
||||
std::string * path = request.PostVar("defaultitem");
|
||||
|
||||
|
||||
if( !path.empty() )
|
||||
if( path && !path->empty() )
|
||||
{
|
||||
std::string dir, file;
|
||||
Dirs::SplitPath(path, dir, file);
|
||||
Dirs::SplitPath(*path, dir, file);
|
||||
|
||||
pdir = data.dirs.GetDir(dir);
|
||||
|
||||
|
Reference in New Issue
Block a user