News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

POSTGRES type error on bulk delete members

Started by Tyris, November 25, 2012, 06:01:27 AM

Previous topic - Next topic

Tyris

I'm getting the following error:
ERROR: argument of WHERE must be type boolean, not type integer
File: /path/to/smf/Sources/Subs-Members.php
Line: 1222

When I try to delete a bunch of members (after doing a member search). POSTGRES database.

The delete action seems to still follow through... but the next page fails to load.

Fix seems to be:
ManageMembers.php:424
$where = empty($query_parts) ? '1' : implode('
replace with:
$where = empty($query_parts) ? '1=1' : implode('
Subs-Members.php:1241
if (empty($where) || $where == '1')
replace with:
if (empty($where) || $where == '1=1')


Untested!

Cheers,
Tyris

emanuele

Thanks Tyris for both the report and the fix!

Will keep track of it.


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Tyris


emanuele



Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Advertisement: