in class _add.php
where is $sMasterFilter coming from ???, its causing an unknown variable error
protected function addRow($rsold = NULL)
{
global $Language, $Security;
$masterUserIdMsg = str_replace("%f", $sMasterFilter, $masterUserIdMsg);
// Check if valid key values for master user
if ($Security->currentUserID() <> "" && !$Security->isAdmin()) { // Non system admin
$masterFilter = $this->sqlMasterFilter_accounts();
if (strval($this->accounts_id->CurrentValue) <> "") {
$masterFilter = str_replace("@id@", AdjustSql($this->accounts_id->CurrentValue, "DB"), $masterFilter);
} else {
$masterFilter = "";
}
if ($masterFilter <> "") {
$rsmaster = $GLOBALS["accounts"]->loadRs($masterFilter);
$this->MasterRecordExists = ($rsmaster && !$rsmaster->EOF);
$validMasterKey = TRUE;
if ($this->MasterRecordExists) {
$validMasterKey = $Security->isValidUserID($rsmaster->fields['UserId']);
} elseif ($this->getCurrentMasterTable() == "accounts") {
$validMasterKey = FALSE;
}
if (!$validMasterKey) {
$masterUserIdMsg = str_replace("%c", CurrentUserID(), $Language->phrase("UnAuthorizedMasterUserID"));
$masterUserIdMsg = str_replace("%f", $sMasterFilter, $masterUserIdMsg);
$this->setFailureMessage($masterUserIdMsg);
return FALSE;
}
if ($rsmaster)
$rsmaster->close();
}
}