Loading...
 
Skip to main content

lib/userslib fix for PostGres

Status
Closed
Subject
lib/userslib fix for PostGres
Version
1.9.x
Category
  • Error
  • Patch
Resolution status
Fixed or Solved
Submitted by
wbeaver2
Volunteered to solve
wbeaver2
Lastmod by
amette
Rating
(0)
Description
The string "isUsers" in line 1013, lib/userslib.php, must be enclosed in Backticks, else query will return postgres error when processed (because postgres will interpret the column name as "isuser" instead of "isUser")
Solution

Replace the line:

$query = "delete from `tiki_newsletter_subscriptions` where `email`=? and isUser=?";

with the line:

$query = "delete from `tiki_newsletter_subscriptions` where `email`=? and `isUser`=?"

Importance
2
Priority
10
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
343
Created
Thursday 22 September, 2005 17:47:09 UTC
by Unknown
LastModif
Tuesday 11 October, 2005 13:34:24 UTC


Show PHP error messages