Index: appsubmit.php =================================================================== RCS file: /home/wine/appdb/appsubmit.php,v retrieving revision 1.58 diff -u -p -r1.58 appsubmit.php --- appsubmit.php 4 Jan 2007 02:35:01 -0000 1.58 +++ appsubmit.php 6 Jan 2007 23:40:25 -0000 @@ -168,7 +168,7 @@ if ($aClean['sSub']) } //FIXME: remove this when we fix vendor submission $oApp->sKeywords = $aClean['sAppKeywords']." *** ".$aClean['sAppVendorName']; - if(is_numeric($oApp->iAppId)) + if($oApp->iAppId) { $oApp->update(); $oApp->ReQueue(); @@ -187,7 +187,7 @@ if ($aClean['sSub']) } else { - if(is_numeric($oVersion->iVersionId)) + if($oVersion->iVersionId) { $oVersion->update(); $oVersion->ReQueue(); @@ -208,7 +208,7 @@ if ($aClean['sSub']) } } $oTest->iVersionId = $oVersion->iVersionId; - if(is_numeric($oTest->iTestingId)) + if($oTest->iTestingId) { $oTest->update(true); $oTest->ReQueue(); @@ -221,7 +221,7 @@ if ($aClean['sSub']) } if ($aClean['sSub'] == 'Delete') { - if (($aClean['sAppType'] == "application") && is_numeric($aClean['iAppId'])) // application + if (($aClean['sAppType'] == "application") && $aClean['iAppId']) // application { // get the queued versions that refers to the application entry we just removed // and delete them as we implicitly added a version entry when adding a new application @@ -239,7 +239,7 @@ if ($aClean['sSub']) // delete the application entry $oApp = new Application($aClean['iAppId']); $oApp->delete(); - } else if(($aClean['sAppType'] == "version") && is_numeric($aClean['iVersionId'])) // version + } else if(($aClean['sAppType'] == "version") && $aClean['iVersionId']) // version { $oVersion = new Version($aClean['iVersionId']); $oVersion->delete(); @@ -265,7 +265,7 @@ if ($aClean['sSub']) perform_search_and_output_results($oApp->sName); echo html_frame_end(" "); } - if(is_numeric($oApp->iAppId)) + if($oApp->iAppId) { //help @@ -316,7 +316,7 @@ if ($aClean['sSub']) $aClean['sAppVendorName'] = ""; } else //app version { - if(is_numeric($oVersion->iVersionId)) + if($oVersion->iVersionId) { $oAppForVersion = new Application($oVersion->iAppId); echo html_frame_start("Potential duplicate versions in the database for application: ".$oAppForVersion->sName,"90%","",0); @@ -362,7 +362,7 @@ if ($aClean['sSub']) if($aClean['sAppType'] == 'application') // application { echo ''; - if(is_numeric($oApp->iAppId)) + if($oApp->iAppId) { echo '