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 :: Unread Messages :: Show Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
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 19: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
add to buddy list
ignore all messages by this user
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 16:27 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3632
Registered: December 2004
Karma: 17
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
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 10: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
add to buddy list
ignore all messages by this user
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 13:22 Go to previous message
naudefj is currently offline  naudefj   South Africa
Messages: 3632
Registered: December 2004
Karma: 17
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
Spot on, thanks!
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
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: Wed Dec 13 21:24:55 EST 2017

Total time taken to generate the page: 0.00706 seconds