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 <[email protected]>
> ---
> 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);