Alexander Nicolaysen Sørnes : version: Small improvements to tables
Module: appdb Branch: master Commit: f851d9378f026acacb7904db46cec9a44cf5545c URL: http://source.winehq.org/git/appdb.git/?a=commit;h=f851d9378f026acacb7904db4... Author: Alexander Nicolaysen Sørnes <alex(a)thehandofagony.com> Date: Sun Nov 4 22:32:19 2007 +0100 version: Small improvements to tables --- include/version.php | 10 +++------- 1 files changed, 3 insertions(+), 7 deletions(-) diff --git a/include/version.php b/include/version.php index ea8c121..3984a1e 100644 --- a/include/version.php +++ b/include/version.php @@ -1475,7 +1475,7 @@ class version { $oTableRow->AddTextCell("Vendor"); $oTableRow->AddTextCell("Application"); $oTableRow->AddTextCell("Version"); - $oTableRow->AddTextCell("Has Super Maintainer"); + $oTableRow->AddTextCell("Has Maintainer"); return $oTableRow; } @@ -1585,11 +1585,7 @@ class version { $oApp = new application($this->iAppId); $oVendor = new vendor($oApp->iVendorId); - $aSuper_maintainers = Maintainer::getSuperMaintainersUserIdsFromAppId($this->iAppId); - if($aSuper_maintainers) - $bHasSuperMaintainer = true; - else - $bHasSuperMaintainer = false; + $aMaintainers = Maintainer::getSuperMaintainersUserIdsFromAppId($this->iAppId); $oTableRow = new TableRow(); $oTableRow->AddTextCell(print_date(mysqldatetime_to_unixtimestamp($this->sSubmitTime))); @@ -1597,7 +1593,7 @@ class version { $oTableRow->AddTextCell($oVendor->objectMakeLink()); $oTableRow->AddTextCell($oApp->objectMakeLink()); $oTableRow->AddTextCell($this->sName); - $oTableRow->AddCell(new TableCell($bHasSuperMaintainer ? "Yes" : "No")); + $oTableRow->AddTextCell(sizeof($aMaintainers) ? "YES" : "No"); $oOMTableRow = new OMTableRow($oTableRow); return $oOMTableRow;
participants (1)
-
Chris Morgan