I am getting the following error when I edit a signature in the modcp. It shows up after the click to save the signature. If I disable the
useradmin_edit_start hook code then the error goes away. Any ideas on how to fix this?
Quote:
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/modcp/user.php(348) : eval()'d code on line 29
|
I figured out the fix for this error. This line:
Code:
$quicklinks = array_merge($quicklinks, array("../member.php?" . $vbulletin->session->vars['sessionurl'] . "do=vsa_loginasuser&u=" . $vbulletin->GPC['userid'] => $vbphrase['vsa_ltua_title'],));
needs to be changed to this since there is only one entry:
Code:
$quicklinks[
"../member.php?" . $vbulletin->session->vars['sessionurl'] . "do=vsa_loginasuser&u=" . $vbulletin->GPC['userid']
] = $vbphrase['vsa_ltua_title'];