diff --git a/op/op.RemoveApprovalLog.php b/op/op.RemoveApprovalLog.php index 9aa103a2d..8c971a951 100644 --- a/op/op.RemoveApprovalLog.php +++ b/op/op.RemoveApprovalLog.php @@ -93,7 +93,7 @@ if($approveStatus['type'] == 0) { UI::exitError(getMLText("document_title", array("documentname" => htmlspecialchars($document->getName()))),getMLText("invalid_approveid")); $comment = $_POST["comment"]; -if(0 == $latestContent->removeApproval($approveid, $user, $comment)) { +if(true === $latestContent->removeApproval($approveid, $user, $comment)) { $latestContent->verifyStatus(true, $user, $msg); } header("Location:../out/out.ViewDocument.php?documentid=".$documentid."¤ttab=revapp"); diff --git a/op/op.RemoveReviewLog.php b/op/op.RemoveReviewLog.php index 6c2582ad5..1e14c7b22 100644 --- a/op/op.RemoveReviewLog.php +++ b/op/op.RemoveReviewLog.php @@ -94,7 +94,7 @@ if($reviewStatus['type'] == 0) { $comment = $_POST["comment"]; $overallStatus = $latestContent->getStatus(); -if(0 == $latestContent->removeReview($reviewid, $user, $comment)) { +if(true === $latestContent->removeReview($reviewid, $user, $comment)) { $latestContent->verifyStatus(true, $user, $msg); if($notifier) { $notifier->sendReviewRequestMail($latestContent, $user);