From d5ba04b63425c578ca5b06f2791753e6b78e3cea Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Sun, 21 Aug 2005 02:07:41 +0000 Subject: [PATCH] Fix access of $iVersion inside of version class that should have been $this->iVersion --- include/version.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/version.php b/include/version.php index 6879360..0707339 100644 --- a/include/version.php +++ b/include/version.php @@ -313,7 +313,7 @@ class Version { function unQueue() { /* is the current user allowed to delete this version? */ - if(!$_SESSION['current']->hasPriv("admin") && !$_SESSION['current']->hasAppVersionModifyPermission($iVersionId)) + if(!$_SESSION['current']->hasPriv("admin") && !$_SESSION['current']->hasAppVersionModifyPermission($this->iVersionId)) { return; } @@ -338,7 +338,7 @@ class Version { function Reject($bSilent=false) { /* is the current user allowed to delete this version? */ - if(!$_SESSION['current']->hasPriv("admin") && !$_SESSION['current']->hasAppVersionModifyPermission($iVersionId)) + if(!$_SESSION['current']->hasPriv("admin") && !$_SESSION['current']->hasAppVersionModifyPermission($this->iVersionId)) { return; }