2008-12-07, 03:41 PM
Trying to warn a member when the forum is using PostgreSQL results in an error.
Reproduction Steps:
1. Go to a members profile
2. Click the "Warn" link
3. Enter an administrative note and select a warning type
4. Click "Warn User"
The following error is returned:
PostgreSQL 8.3.4
PHP: 5.2.6-2ubuntu4
Reproduction Steps:
1. Go to a members profile
2. Click the "Warn" link
3. Enter an administrative note and select a warning type
4. Click "Warn User"
The following error is returned:
MyBB has experienced an internal SQL error and cannot continue.
SQL Error:
22P02 - ERROR: invalid input syntax for integer: ""
Query:
INSERT INTO trunk_warnings (uid,tid,pid,title,points,dateline,issuedby,expires,expired,notes) VALUES ('2','1','','','2','1228664436','1','1229269236','0','Test')
PostgreSQL 8.3.4
PHP: 5.2.6-2ubuntu4