* fix bugs.

This commit is contained in:
wangyidong
2015-01-13 08:40:56 +08:00
parent 1111206f8d
commit 6eb622d45a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -147,7 +147,7 @@ class extension extends control
}
/* Download the package file. */
$this->extension->downloadPackage($extension, helper::safe64Decode($downLink));
if(!file_exists($packageFile) or ($md5 != '' and md5_file($packageFile) != $md5)) $this->extension->downloadPackage($extension, helper::safe64Decode($downLink));
if(!file_exists($packageFile))
{
$this->view->error = sprintf($this->lang->extension->errorDownloadFailed, $packageFile);
+1 -1
View File
@@ -320,7 +320,7 @@ EOT;
{
if($bug->project)
{
$projects[$bug->project] = new stdclass();
if(!isset($projects[$bug->project]))$projects[$bug->project] = new stdclass();
$projects[$bug->project]->bugs = isset($projects[$bug->project]->bugs) ? $projects[$bug->project]->bugs + 1 : 1;
}
}