"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Upload/admin/inc/functions_view_manager.php" between
mybb_1822.zip and mybb_1823.zip

About: MyBB is a multilingual, standards-compliant and free forum (discussion board) software.

functions_view_manager.php  (mybb_1822):functions_view_manager.php  (mybb_1823)
skipping to change at line 67 skipping to change at line 67
if($mybb->request_method == "post") if($mybb->request_method == "post")
{ {
if(!trim($mybb->input['title'])) if(!trim($mybb->input['title']))
{ {
$errors[] = $lang->error_missing_view_title; $errors[] = $lang->error_missing_view_title;
} }
if($mybb->input['fields_js']) if($mybb->input['fields_js'])
{ {
$mybb->input['fields'] = explode(",", $mybb->inpu t['fields_js']); $mybb->input['fields'] = explode(",", $mybb->inpu t['fields_js']);
} }
if(is_array($mybb->input['fields']) && count($mybb->input ['fields']) <= 0) if(!is_array($mybb->input['fields']) || count($mybb->inpu t['fields']) <= 0)
{ {
$errors[] = $lang->error_no_view_fields; $errors[] = $lang->error_no_view_fields;
} }
if($mybb->get_input('perpage', MyBB::INPUT_INT) <= 0) if($mybb->get_input('perpage', MyBB::INPUT_INT) <= 0)
{ {
$errors[] = $lang->error_invalid_view_perpage; $errors[] = $lang->error_invalid_view_perpage;
} }
if(!in_array($mybb->input['sortby'], array_keys($sort_opt ions))) if(!in_array($mybb->input['sortby'], array_keys($sort_opt ions)))
skipping to change at line 257 skipping to change at line 257
{ {
if(!trim($mybb->input['title'])) if(!trim($mybb->input['title']))
{ {
$errors[] = $lang->error_missing_view_title; $errors[] = $lang->error_missing_view_title;
} }
if($mybb->input['fields_js']) if($mybb->input['fields_js'])
{ {
$mybb->input['fields'] = explode(",", $mybb->inpu t['fields_js']); $mybb->input['fields'] = explode(",", $mybb->inpu t['fields_js']);
} }
if(is_array($mybb->input['fields']) && count($mybb->input ['fields']) <= 0) if(!is_array($mybb->input['fields']) || count($mybb->inpu t['fields']) <= 0)
{ {
$errors[] = $lang->error_no_view_fields; $errors[] = $lang->error_no_view_fields;
} }
if($mybb->get_input('perpage', MyBB::INPUT_INT) <= 0) if($mybb->get_input('perpage', MyBB::INPUT_INT) <= 0)
{ {
$errors[] = $lang->error_invalid_view_perpage; $errors[] = $lang->error_invalid_view_perpage;
} }
if(!in_array($mybb->input['sortby'], array_keys($sort_opt ions))) if(!in_array($mybb->input['sortby'], array_keys($sort_opt ions)))
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)