From 88743489f1f5fb10f6eae426398f6fe1fce15645 Mon Sep 17 00:00:00 2001 From: nbm Date: Wed, 1 Dec 2004 13:56:10 +0000 Subject: [PATCH] Cover up errors that didn't get picked up by my testing. --- lib/groups/GroupUnitLink.inc | 2 +- lib/links/Link.inc | 1 - lib/roles/Role.inc | 5 ++--- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/groups/GroupUnitLink.inc b/lib/groups/GroupUnitLink.inc index e308b81..21b9ce4 100644 --- a/lib/groups/GroupUnitLink.inc +++ b/lib/groups/GroupUnitLink.inc @@ -115,7 +115,7 @@ class GroupUnitLink { $sTable = $default->groups_units_table; $aFieldValues = array( 'group_id' => $this->iGroupID, - 'unit_id' => this->iUnitID, + 'unit_id' => $this->iUnitID, ); $id =& DBUtil::autoInsert($sTable, $aFieldValues); diff --git a/lib/links/Link.inc b/lib/links/Link.inc index b8c8c30..44322e7 100644 --- a/lib/links/Link.inc +++ b/lib/links/Link.inc @@ -113,7 +113,6 @@ class Link { $this->iId = $id; return true; } - } $_SESSION["errorMessage"] = $lang_err_object_exists . "id = " . $this->iId . " table = document_fields"; return false; } diff --git a/lib/roles/Role.inc b/lib/roles/Role.inc index 4529fe7..0147723 100644 --- a/lib/roles/Role.inc +++ b/lib/roles/Role.inc @@ -116,9 +116,8 @@ class Role { $this->iId = $id; return true; } - } - $_SESSION["errorMessage"] = $lang_err_object_exists . "id = " . $this->iId . " table = document_fields"; - return false; + $_SESSION["errorMessage"] = $lang_err_object_exists . "id = " . $this->iId . " table = document_fields"; + return false; } /** -- libgit2 0.21.4