* code for bug #777.

This commit is contained in:
wangyidong
2015-12-22 16:56:55 +08:00
parent 1e3c913063
commit 957111c6f0

View File

@@ -315,7 +315,7 @@ class doc extends control
}
$projects = $this->project->getPairs('all');
if($libID == 'project' and ($projects))
if($libID == 'project' and empty($projects))
{
echo js::alert($this->lang->doc->errorEmptyProject);
die(js::locate('back'));