Jump to content

[BUG 4.7.8] Debug code left inside a try/catch when viewing a topic without the proper permissions


Go to solution Solved by Marc Stridgen,

Recommended Posts

The code I'm talking about is located in /applications/forums/modules/front/forums/topic.php on line 1290:

		catch ( \Exception $e )
		{
			\IPS\Log::log( $e, 'topic_call' );
			\IPS\Output::i()->error( 'node_error', '2F173/I', 404, '' );
		}

The \IPS\Log::log() call is executed when a user without permission tries to view a topic.

 

I found it only because I noticed a topic_call category while viewing the System Logs in ACP.

I think it was left there by mistake when debugging something. It should be removed or changed to use debug() instead.

Link to comment
Share on other sites

  • 2 months later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...