Alexander Nicolaysen Sørnes : note: Fix e-mail test when moving from version to app

Alexander Nicolaysen Sørnes asornes at winehq.org
Wed Jul 29 10:33:59 CDT 2009


Module: appdb
Branch: master
Commit: bb050bc04045e830ca1c63d2fceaad943a1c004a
URL:    http://source.winehq.org/git/appdb.git/?a=commit;h=bb050bc04045e830ca1c63d2fceaad943a1c004a

Author: Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
Date:   Wed Jul 29 17:33:41 2009 +0200

note: Fix e-mail test when moving from version to app

---

 include/note.php |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/note.php b/include/note.php
index 0161b73..5074bb9 100644
--- a/include/note.php
+++ b/include/note.php
@@ -121,17 +121,17 @@ class Note {
                                   $this->iVersionId, $this->iNoteId))
                 return false;
 
-            $sVersionBefore = Version::lookup_name($oNote->iVersionId);
-
             if(!$this->iAppId)
             {
+                $sVersionBefore = Version::lookup_name($oNote->iVersionId);
                 $sVersionAfter = Version::lookup_name($this->iVersionId);
                 $sWhatChanged .= "Version was changed from ".$sVersionBefore." to ".$sVersionAfter.".\n\n";
             } else
             {
                 $oApp = new application($this->iAppId);
                 $sNewApp = $oApp->sName;
-                $sWhatChanged .= "Moved from version $shVersionBefore to application $sNewApp"; 
+                $sVersionBefore = version::fullName($oNote->iVersionId);
+                $sWhatChanged .= "Moved from version $sVersionBefore to application $sNewApp.\n\n"; 
             }
         }
         if (($this->iAppId || $this->iVersionId) && $this->iAppId!=$oNote->iAppId)




More information about the wine-cvs mailing list