Closed (fixed)
Project:
Drupal core
Version:
6.x-dev
Component:
forum.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Dec 2007 at 12:32 UTC
Updated:
5 Jan 2008 at 23:12 UTC
Jump to comment: Most recent file
Comments
Comment #1
catchComment #2
JirkaRybka commentedI'm not familiar with that bit of code, but I would rather use empty() instead of !isset(). empty() is exactly the same as !$variable, only just avoids warnings, so it's a safer replacement.
http://cz2.php.net/manual/en/function.empty.php :
Comment #3
catchThanks JirkaRybka.
empty() does the job just fine.
Comment #4
JirkaRybka commentedI tried to test this, but I seem unable to reproduce the problem: Fresh 6.x-dev install, enabled forum module, added one container and one forum, created a forum topic. Edited it, tried with/without previews, revisions - no warnings on screen and no warnings in watchdog. This is puzzling me...
Edit: Ah, now I see: The bug doesn't happen while testing as user 1. Now going to test again.
Comment #5
JirkaRybka commentedOk, as a mere authenticated user with decent forum-posting permissions (no revisions allowed/offered on form), I reproduce the problem. Patch fixes it, simple one-liner.
RTBC.
Comment #6
catchJirkaRybka: sorry, should've mentioned that I was testing with auth user at the time.
Comment #7
catchcross posted.
Comment #8
gábor hojtsyCommitted, thanks.
Comment #9
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.