1 (edited by orlandu63 2007-01-01 03:28)

Topic: Zapping...

I 'zapped' a report that I created but the report still stays in the 'New Reports' section. Anyone know why? I have no mods installed, except for a BBCode mod, so it's basically a clean version of PunBB.

Thanks in advance.

Re: Zapping...

Could you provide a link and a moderator account in your forum so I could take a look?

Re: Zapping...

I believe I've found the problem. On line 48 in admin_reports.php, where it says

    if ($zapped === '')

i've replaced with

    if ($zapped === null)

And it worked. Did others have this problem or am was I the only one? Weird.

Re: Zapping...

It isn't === in the PunBB source, it's simply ==
Where did you download your copy from?

Re: Zapping...

I changed the source myself, actually. Using === is faster(marginally) than == while comparing strings.

Re: Zapping...

That's the problem: you weren't comparing a string there, you were comparing a null wink

Re: Zapping...

How do you clear reports that have already been zapped?

8 (edited by guardian34 2007-02-23 23:46)

Re: Zapping...

There isn't a built-in way. A query [in PunBB] would look like this though:

$db->query('DELETE FROM '.$db->prefix.'reports WHERE zapped IS NOT NULL') or error('Unable to delete reports', __FILE__, __LINE__, $db->error());

Re: Zapping...

ok, thank you.