Quote:
Originally Posted by Pickalo
Hey... I've been having some problems entering the data for warning types. Every time I try I get this error:
Thanks.
|
that's due to a bug in the code that's checks if those propertys are filled in properly to resolve that open the file admin_warn.php and find
PHP Code:
if ($warn_opts['allowoffpost']=='No' AND $_POST['warn_type']=='No')
{
define('CP_REDIRECT', 'admin_warn.php?act=view');
print_stop_message('warning_warn_typeconflict');
}
after that add
PHP Code:
if(empty($_POST['warn_name']) OR trim($_POST['warn_name']) == '')
{
print_stop_message('warning_warn_emptywarntype');
}
if(empty($_POST['warn_desc']) OR trim($_POST['warn_desc']) == '')
{
print_stop_message('warning_warn_emptydesc');
}
if(empty($_POST['warn_points']) OR trim($_POST['warn_points']) == '')
{
print_stop_message('warning_warn_emptypoints');
}
if(empty($_POST['warn_maturity']) OR trim($_POST['warn_maturity'])== '')
{
print_stop_message('warning_warn_maturity');
}
i am verry sorry for making such a stupid mistake that code is mine John is innocent