Update admin_categories.php

This commit is contained in:
Visman 2023-03-01 21:26:47 +07:00
parent 131ccbfc75
commit eb467731a6

View file

@ -139,7 +139,7 @@ else if (isset($_POST['update'])) // Change position and name of the categories
if ($cur_cat['order'] == '' || preg_match('%[^0-9]%', $cur_cat['order']))
message($lang_admin_categories['Must enter integer message']);
$db->query('UPDATE '.$db->prefix.'categories SET cat_name=\''.$db->escape($cur_cat['name']).'\', disp_position='.$cur_cat['order'].' WHERE id='.intval($cat_id)) or error('Unable to update category', __FILE__, __LINE__, $db->error());
$db->query('UPDATE '.$db->prefix.'categories SET cat_name=\''.$db->escape($cur_cat['name']).'\', disp_position='.intval($cur_cat['order']).' WHERE id='.intval($cat_id)) or error('Unable to update category', __FILE__, __LINE__, $db->error());
}
// Regenerate the quick jump cache