spelling, small cleanups
This commit is contained in:
@@ -31,7 +31,7 @@ class NetBiblio extends WebService
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve information about the curent user from the database.
|
||||
* Retrieve information about the current user from the database.
|
||||
* If a username is given, first validate that it is the same
|
||||
* currently in the session.
|
||||
*
|
||||
@@ -254,7 +254,7 @@ class NetBiblio extends WebService
|
||||
$sql = "SELECT circulationId
|
||||
FROM OldCirculations
|
||||
WHERE
|
||||
useraccountID= $userId AND
|
||||
UserAccountID= $userId AND
|
||||
itemID = $itemId AND
|
||||
LTRIM(RTRIM(remark)) = '$client';";
|
||||
$result = Connection::execute($sql, false);
|
||||
@@ -278,11 +278,11 @@ class NetBiblio extends WebService
|
||||
$nextId = 1;
|
||||
}
|
||||
|
||||
$sql = "UPDATE Useraccounts
|
||||
$sql = "UPDATE UserAccounts
|
||||
SET
|
||||
Circulations = Circulations + 1,
|
||||
TotalCirculations = TotalCirculations + 1
|
||||
WHERE UseraccountID = $userId;";
|
||||
WHERE UserAccountID = $userId;";
|
||||
Connection::execute($sql);
|
||||
|
||||
$sql = "UPDATE Items
|
||||
@@ -294,11 +294,11 @@ class NetBiblio extends WebService
|
||||
|
||||
$worker_id = Configuration::get('netbiblio_worker_id');
|
||||
$sql = "INSERT INTO OldCirculations (
|
||||
CirculationID, ItemID, UseraccountID,
|
||||
CirculationID, ItemID, UserAccountID,
|
||||
Remark,
|
||||
DueDate, CheckOutDate, CheckInDate,
|
||||
CheckOutBranchofficeID, CheckOutEmployeeID, CheckInBranchofficeID, CheckInEmployeeID,
|
||||
Reminders, Renewals, Prereminder, InfoCode, CheckOutSIP2Info, CheckInSIP2Info
|
||||
CheckOutBranchOfficeID, CheckOutEmployeeID, CheckInBranchOfficeID, CheckInEmployeeID,
|
||||
Reminders, Renewals, PreReminder, InfoCode, CheckOutSIP2Info, CheckInSIP2Info
|
||||
) VALUES (
|
||||
$nextId, $itemId, $userId,
|
||||
'$client',
|
||||
|
||||
Reference in New Issue
Block a user