[aur-dev] [PATCH 5/5] Minimize calls to und_from_sid()

Loui Chang louipc.ist at gmail.com
Sun Jan 4 14:32:46 EST 2009


On Mon, Dec 29, 2008 at 10:36:07PM -0600, Dan McGee wrote:
> Just like the previous patch for account_from_sid() over-usage.
> 
> Signed-off-by: Dan McGee <dan at archlinux.org>
> ---
>  web/html/pkgsubmit.php |   12 +++++++-----
>  web/lib/pkgfuncs.inc   |    9 +++++----
>  2 files changed, 12 insertions(+), 9 deletions(-)
> 
> diff --git a/web/lib/pkgfuncs.inc b/web/lib/pkgfuncs.inc
> index 2ebae89..03acbed 100644
> --- a/web/lib/pkgfuncs.inc
> +++ b/web/lib/pkgfuncs.inc
> @@ -272,6 +272,7 @@ function package_details($id=0, $SID="") {
>  	global $_REQUEST;
>  	global $pkgsearch_vars;
>  	$atype = account_from_sid($SID);
> +	$uid = uid_from_sid($sid);

Pushed with a small fix.

$uid should be set with:
	$uid = uid_from_sid($SID);



More information about the aur-dev mailing list