Module: appdb Branch: master Commit: 61439a79ce6af01e66fd578793c80a864f370f75 URL: http://source.winehq.org/git/appdb.git/?a=commit;h=61439a79ce6af01e66fd57879...
Author: Alexander Nicolaysen Sørnes <alexander@linux-xqqm.(none)> Date: Sun Nov 22 04:07:50 2009 +0100
vendor: If an admin adds a duplicate vendor, unqueue matching entry if it exists
---
include/vendor.php | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/include/vendor.php b/include/vendor.php index e808215..820741b 100644 --- a/include/vendor.php +++ b/include/vendor.php @@ -76,6 +76,9 @@ class Vendor { { $this->vendor($oRow->vendorId);
+ if(!$this->mustBeQueued()) + $this->unQueue(); + /* Even though we did not create a new vendor, the caller is provided with an id and can proceed as normal, so we return TRUE */ return TRUE;