spelling, small cleanups

This commit is contained in:
Gilles Crettenand
2015-06-02 23:14:54 +02:00
parent b587047d17
commit 4f865d1186
8 changed files with 36 additions and 38 deletions

View File

@@ -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',