FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » Undefined variable: MOD in ppost.php on line 2427
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Undefined variable: MOD in ppost.php on line 2427 [message #165852] Wed, 17 August 2011 23:53 Go to next message
JanRei is currently offline  JanRei   Germany
Messages: 361
Registered: October 2005
Location: Germany
Karma: 0
Senior Member
Contributing Core Developer
Translator
After opening the form to write a private message and clicking on preview I see the following notice in the server log:
Undefined variable: MOD in forum\theme\default\ppost.php on line 2427

I am unsure how to fix this, maybe $MOD should be defined as
$MOD = (int) ($is_a || ($usr->users_opt & 524288));
Re: Undefined variable: MOD in ppost.php on line 2427 [message #165906 is a reply to message #165852] Sun, 21 August 2011 20:27 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3772
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Can you please fix it for us?
Aw: Re: Undefined variable: MOD in ppost.php on line 2427 [message #165907 is a reply to message #165906] Mon, 22 August 2011 14:47 Go to previous messageGo to next message
JanRei is currently offline  JanRei   Germany
Messages: 361
Registered: October 2005
Location: Germany
Karma: 0
Senior Member
Contributing Core Developer
Translator
After having a second look I noticed that there is only a per-forum setting whether moderators can bypass the attachment limits. But there is no global setting for attachments to private messages. That's why I committed a fix that removes the moderator check here. However, I am not sure that this is the correct way to do it.
Re: Aw: Re: Undefined variable: MOD in ppost.php on line 2427 [message #165908 is a reply to message #165907] Mon, 22 August 2011 17:22 Go to previous message
naudefj is currently offline  naudefj   South Africa
Messages: 3772
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Spot on, thanks!
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: A little Warning is detected in a server log file
Next Topic: Entries about missing images in Apache error log
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Mon Dec 30 17:55:12 GMT 2024

Total time taken to generate the page: 0.03122 seconds