- replaced tons of tabs with spaces

- replaced <? with <?php for compatibility sake (see TODO and CODING_STANDARD to know more)
- improved overall code lisibility
This commit is contained in:
Jonathan Ernst
2004-12-12 03:51:51 +00:00
committed by WineHQ
parent 7270e4cabc
commit d3d9e853d9
73 changed files with 1156 additions and 1219 deletions

View File

@@ -1,13 +1,16 @@
<?
<?php
/*****************************/
/* functions for maintainers */
/*****************************/
/*
* get the applications and versions that this userId maintains
/**
* get the applications and versions that this userId maintains
*/
function getAppsFromUserId($userId)
{
$result = mysql_query("SELECT appId, versionId, superMaintainer FROM ".
"appMaintainers WHERE userId = '$userId'");
if(mysql_num_rows($result) == 0)
if(!$result || mysql_num_rows($result) == 0)
return;
$retval = array();
@@ -53,7 +56,7 @@ function getSuperMaintainersUserIdsFromAppId($appId)
"appMaintainers WHERE appId = '$appId' " .
"AND superMaintainer = '1';";
$result = mysql_query($query);
if(mysql_num_rows($result) == 0)
if(!$result || mysql_num_rows($result) == 0)
return; // no sub categories
$retval = array();
@@ -67,4 +70,4 @@ function getSuperMaintainersUserIdsFromAppId($appId)
return $retval;
}
?>
?>