<?php
$system->error('This feature has been disabled in demo mode') if $system->config('demo');
$system->error('You didn't enter a name for this category') if (!$system->param('name'));
$system->db->do('UPDATE categories SET name = ?,status = ? WHERE id = ?',undef,$system->param('name'),$system->param('status') || '0',$category->id);
$system->redirect;
?>