Пример #1
0
 public static function updateCategory(ForumCategory $c)
 {
     global $db;
     $db->query("\n\t\t\t\tUPDATE " . TABLE_FORUM_CATEGORIES . "\n\t\t\t\tSET title = :title,\n\t\t\t\t\tclosed = :closed,\n\t\t\t\t\t`order` = :order\n\t\t\t\tWHERE id = :id\n\t\t\t", array($c->getTitle(), $c->isClosed() ? 1 : 0, $c->getOrder(), $c->getID()));
 }