MyBB Community Forums

Full Version: misc.php warning 1.8.36
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
misc.php
A warning occurs.

<error>
	<dateline>1695220074</dateline>
	<datetime>2023-09-20 14:27:54 UTC -0500</datetime>
	<script>misc.php</script>
	<line>182</line>
	<type>2</type>
	<friendly_type>Warning</friendly_type>
	<message>Trying to access array offset on value of type null</message>
	<back_trace>#0  errorHandler->error() called at [/inc/class_error.php:153]
#1  errorHandler->error_callback() called at [/misc.php:182]
</back_trace>
</error>

Find line 182
		if($last_search['sid'])
and replace with
		if(!empty($last_search['sid']))