Quote:
Originally Posted by sv1cec
MThornback,
'comment' is a string, why are you comparing to with zero? Try comparing it with ''.
|
That would be because I am an admirer and editor of code...more than I am good at writing it
So this should work then? Cause it doesn't
Code:
// Require Comment //
if ($vbulletin->GPC['comment']=='')
{
$message_left="{$user['username']} could not be warned because you did not enter a reason for the warning. Please go <a href='javascript:history.go(-1)'>back</a> and try again.";
}
else
{
eval('$warn_page .= "' . fetch_template('warn_redirect') . '";');
}