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.
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.2 troubleshooting → 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.
Could you provide a link and a moderator account in your forum so I could take a look?
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.
It isn't === in the PunBB source, it's simply ==
Where did you download your copy from?
I changed the source myself, actually. Using === is faster(marginally) than == while comparing strings.
That's the problem: you weren't comparing a string there, you were comparing a null
How do you clear reports that have already been zapped?
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());
ok, thank you.
PunBB Forums → PunBB 1.2 troubleshooting → Zapping...
Powered by PunBB, supported by Informer Technologies, Inc.