Alexander Nicolaysen Sørnes : vendor: Ignore deleted entries when checking for duplicates
Alexander Nicolaysen Sørnes
asornes at winehq.org
Tue Oct 27 19:11:41 CDT 2009
Module: appdb
Branch: master
Commit: f852373d168fd7674971c43fdcfff07740b358a0
URL: http://source.winehq.org/git/appdb.git/?a=commit;h=f852373d168fd7674971c43fdcfff07740b358a0
Author: Alexander Nicolaysen Sørnes <alexander at linux-xqqm.(none)>
Date: Tue Oct 27 21:06:59 2009 +0100
vendor: Ignore deleted entries when checking for duplicates
---
include/vendor.php | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/include/vendor.php b/include/vendor.php
index 6242978..e808215 100644
--- a/include/vendor.php
+++ b/include/vendor.php
@@ -68,7 +68,7 @@ class Vendor {
function create()
{
/* Check for duplicates */
- $hResult = query_parameters("SELECT * FROM vendor WHERE vendorName = '?'",
+ $hResult = query_parameters("SELECT * FROM vendor WHERE vendorName = '?' AND state != 'deleted'",
$this->sName);
if($hResult && $oRow = query_fetch_object($hResult))
{
More information about the wine-cvs
mailing list