Skip to content

Commit

Permalink
Fix xrf_books#2 from old repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ocdtrekkie authored Jun 22, 2024
1 parent a21ac9c commit b3dc5af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/library/acpm_checkout.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
$result=mysqli_query($xrf_db, $query);
@$oldstatus=xrf_mysql_result($result,0,"status");
if ($oldstatus == "chked")
mysqli_query($xrf_db, "UPDATE l_circ SET returned = NOW() WHERE bookid = '$bookid'") or die(mysqli_error($xrf_db));
mysqli_query($xrf_db, "UPDATE l_circ SET returned = NOW() WHERE bookid = '$bookid' AND returned = '0'") or die(mysqli_error($xrf_db));
else
mysqli_query($xrf_db, "UPDATE l_books SET status = 'chked' WHERE barcode = '$bookid'") or die(mysqli_error($xrf_db));

Expand Down

0 comments on commit b3dc5af

Please sign in to comment.