Attached Files | 0001-BUG-Fix-two-typos-in-file-viewer.patch [^] (1,412 bytes) 2013-08-08 10:11 [Show Content] [Hide Content]From 571431c288be43865a9619b77fb9d2d08750612e Mon Sep 17 00:00:00 2001
From: Igor Murzov <e-mail@date.by>
Date: Wed, 7 Aug 2013 13:25:25 +0400
Subject: [PATCH] BUG: Fix two typos in file viewer
This commit fixes following errors:
PHP Notice: Undefined variable: uploadFile in /var/www/cdash/viewFiles.php on line 65
PHP Notice: Trying to get property of non-object in /var/www/cdash/viewFiles.php on line 65
PHP Notice: Undefined variable: dbsize in /var/www/cdash/viewFiles.php on line 88
---
viewFiles.php | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/viewFiles.php b/viewFiles.php
index df1853a..311b3b2 100644
--- a/viewFiles.php
+++ b/viewFiles.php
@@ -62,7 +62,7 @@ foreach($uploadFilesOrURLs as $uploadFileOrURL)
if(!$uploadFileOrURL->IsUrl)
{
$xml .= '<uploadfile>';
- $xml .= '<id>'.$uploadFile->Id.'</id>';
+ $xml .= '<id>'.$uploadFileOrURL->Id.'</id>';
$xml .= '<href>'.$CDASH_DOWNLOAD_RELATIVE_URL.'/'.$uploadFileOrURL->Sha1Sum.'/'.$uploadFileOrURL->Filename.'</href>';
$xml .= '<sha1sum>'.$uploadFileOrURL->Sha1Sum.'</sha1sum>';
$xml .= '<filename>'.$uploadFileOrURL->Filename.'</filename>';
@@ -85,7 +85,7 @@ foreach($uploadFilesOrURLs as $uploadFileOrURL)
$filesize /= 1024;
$ext = "Gb";
}
- if($dbsize>1024)
+ if($filesize>1024)
{
$filesize /= 1024;
$ext = "Tb";
--
1.7.9.5
|