Index: include/maintainer.php =================================================================== RCS file: /home/wine/appdb/include/maintainer.php,v retrieving revision 1.18 diff -u -p -r1.18 maintainer.php --- include/maintainer.php 25 Nov 2006 17:24:45 -0000 1.18 +++ include/maintainer.php 1 Dec 2006 14:22:17 -0000 @@ -92,9 +92,8 @@ class maintainer } } else { - //delete the item from the queue - query_parameters("DELETE from appMaintainers WHERE userId = '?' AND maintainerId = '?'", - $this->iUserId, $this->iMaintainerId); + /* Delete entry, but only if queued */ + query_parameters("DELETE from appMaintainers WHERE userId = '?' AND maintainerId = '?' AND queued = 'true'", $this->iUserId, $this->iMaintainerId); if($oUser->isSuperMaintainer($this->iAppId) && !$this->bSuperMaintainer) $sStatusMessage = "
User is already a super maintainer of this application
\n";