[AppDB] Fix up vendor when submiting app
tony_lambregts at telusplanet.net
tony_lambregts at telusplanet.net
Mon Jan 10 00:08:48 CST 2005
Change log: Fix up vendor when submiting app.
Files changed: appsubmit.php
-------------- next part --------------
Index: appsubmit.php
===================================================================
RCS file: /home/wine/appdb/appsubmit.php,v
retrieving revision 1.14
diff -u -r1.14 appsubmit.php
--- appsubmit.php 30 Dec 2004 16:29:27 -0000 1.14
+++ appsubmit.php 10 Jan 2005 06:03:07 -0000
@@ -71,9 +71,9 @@
if(isset($_REQUEST['altvendor']))
{
/* retrieve the actual name here */
- $sQuery = "select * from vendor where vendorId = '$altvendor';";
+ $sQuery = "select * from vendor where vendorId = ".$_REQUEST['altvendor'].";";
$result = query_appdb($sQuery);
- if($result)
+ if($result && mysql_num_rows($result) > 0 )
{
$ob = mysql_fetch_object($result);
$_REQUEST['queueVendor'] = $ob->vendorName;
More information about the wine-patches
mailing list