Looks like the current versoin you copied out of some vterm window from a shell of some kind... one of the lines is cut off.
Code:
######### OPEN includes/functions_showthread.php ########
## FIND:
$show['messageicon'] = iif($post['iconpath'], true, false);
## BELOW ADD:
// profile pic in thread
if ($post[haspic] == "" && isset($post['userid']))
{
$show['haspic']=false;
$mjctemp = $DB_site->query_first("SELECT count(*) AS count FROM " . TABLE_PREFIX . "customprofilepic WHERE userid=" . $pos$
if ($mjctemp[count]==1) {
$show['haspic']=true;
$DB_site->query("UPDATE " . TABLE_PREFIX . "user SET haspic='1' WHERE userid = $post[userid]");
} else {
$DB_site->query("UPDATE " . TABLE_PREFIX . "user SET haspic='0' WHERE userid = $post[userid]");
}
} else {
if ($post[haspic]=="1")
{ $show['haspic']=true; }
else
{ $show['haspic']=false; }
}
// profile pic in thread
// SAVE & CLOSE includes/functions_showthread.php
[high]* ninjaneo points to
[/high]
Code:
$mjctemp = $DB_site->query_first("SELECT count(*) AS count FROM " . TABLE_PREFIX . "customprofilepic WHERE userid=" . $pos$