
04-20-2005, 05:26 PM
|
|
|
Join Date: Feb 2005
Location: Wrexham,Wales
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by gigaenvy
Upgrade to 1.2.0 and received this error as well
Edit: Fixed it myself knowing less than zilch about vbulletin or php syntax.
I added a trailing ';' at the end of 'WHERE varname' statement.
Code:
{
$DB_site->query("UPDATE " . TABLE_PREFIX . "setting SET grouptitle = '$settinggroup' " .
iif($value, ", value = '" . $value . "'") .
iif($defaultvalue, ", defaultvalue = '" . $defaultvalue . "'") .
iif($optioncode, ", optioncode = '" . $optioncode . "'") .
iif($displayorder, ", displayorder = '" . $displayorder . "'") .
" WHERE varname = '$varname'");
}
|
That worked,thank you.
Hack is now installed and working great.
|