Remove an unneeded check in vendor class

This commit is contained in:
Jonathan Ernst
2005-02-09 02:21:41 +00:00
committed by WineHQ
parent 7c3c90b8e3
commit 3eb69ee3af

View File

@@ -23,18 +23,15 @@ class Vendor {
/* /*
* We fetch the data related to this vendor. * We fetch the data related to this vendor.
*/ */
if(!$this->vendorId) $sQuery = "SELECT *
FROM vendor
WHERE vendorId = ".$iVendorId;
if($hResult = query_appdb($sQuery))
{ {
$sQuery = "SELECT * $oRow = mysql_fetch_object($hResult);
FROM vendor $this->iVendorId = $iVendorId;
WHERE vendorId = ".$iVendorId; $this->sName = $oRow->vendorName;
if($hResult = query_appdb($sQuery)) $this->sWebpage = $oRow->vendorURL;
{
$oRow = mysql_fetch_object($hResult);
$this->iVendorId = $iVendorId;
$this->sName = $oRow->vendorName;
$this->sWebpage = $oRow->vendorURL;
}
} }
/* /*
@@ -103,7 +100,6 @@ class Vendor {
/** /**
* Deletes the vendor from the database. * Deletes the vendor from the database.
* FIXME: What should happen if sizeof($aApplicationsIds)>0 ?
*/ */
function delete($bSilent=false) function delete($bSilent=false)
{ {