Remove an unneeded check in vendor class
This commit is contained in:
@@ -23,8 +23,6 @@ class Vendor {
|
|||||||
/*
|
/*
|
||||||
* We fetch the data related to this vendor.
|
* We fetch the data related to this vendor.
|
||||||
*/
|
*/
|
||||||
if(!$this->vendorId)
|
|
||||||
{
|
|
||||||
$sQuery = "SELECT *
|
$sQuery = "SELECT *
|
||||||
FROM vendor
|
FROM vendor
|
||||||
WHERE vendorId = ".$iVendorId;
|
WHERE vendorId = ".$iVendorId;
|
||||||
@@ -35,7 +33,6 @@ class Vendor {
|
|||||||
$this->sName = $oRow->vendorName;
|
$this->sName = $oRow->vendorName;
|
||||||
$this->sWebpage = $oRow->vendorURL;
|
$this->sWebpage = $oRow->vendorURL;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* We fetch applicationsIds.
|
* We fetch applicationsIds.
|
||||||
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user