View previous topic :: View next topic |
Author |
Message |
bestbuildpc Site Admin


Joined: Jun 30, 2012 Posts: 213 Location: NL
|
Posted: Sun Apr 30, 2023 12:09 Post subject: Trying to access array offset on value of type null in line |
|
|
Code: if ($signature != '') {
if ( !$board_config['allow_html'] || !$userinfo['user_allowhtml']) {
$signature = preg_replace('#(<)([\/]?.*?)(>)#is', "<\\2>", $signature);
}
|
Replace with
Code:if ($signature != '') {
if ( !$board_config['allow_html'] || (isset($userinfo['user_allowhtml']) && !$userinfo['user_allowhtml'])) {
$signature = preg_replace('#(<)([\/]?.*?)(>)#is', "<\\2>", $signature);
}
|
|
|
Back to top |
|
 |
bestbuildpc Site Admin


Joined: Jun 30, 2012 Posts: 213 Location: NL
|
Posted: Tue May 09, 2023 22:11 Post subject: |
|
|
Code: $sql = 'SELECT template_name FROM ' . $prefix . '_bbthemes WHERE themes_id=\'' . addslashes($bbstyle) . '\'';
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$bbtheme = $row['template_name'];
|
Replace with
Code: $sql = 'SELECT template_name FROM ' . $prefix . '_bbthemes WHERE themes_id=\'' . addslashes($bbstyle) . '\'';
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
if (isset($row['template_name'])) {
$bbtheme = $row['template_name'];
} else {
$bbtheme = '';
}
|
|
|
Back to top |
|
 |
bestbuildpc Site Admin


Joined: Jun 30, 2012 Posts: 213 Location: NL
|
Posted: Tue May 09, 2023 22:22 Post subject: |
|
|
Code:if ($cidinfo['title'] != '') $title = htmlspecialchars($cidinfo['title'], ENT_QUOTES, _CHARSET) . ' -> ' . $title;
if ($cidinfo['parentid'] != 0) {
|
Replace with
Code:if (isset($cidinfo['title']) && $cidinfo['title'] != '') $title = htmlspecialchars($cidinfo['title'], ENT_QUOTES, _CHARSET) . ' -> ' . $title;
if (isset($cidinfo['parentid']) && $cidinfo['parentid'] != 0) {
|
Code:if ($cidinfo['title'] != '') {
|
Replace with
Code:if (isset($cidinfo['title']) && $cidinfo['title'] != '') {
|
|
|
Back to top |
|
 |
|