Esempio n. 1
0
/**
 * Update banner category code
 *
 * @param string $oldcat Old Cat code
 * @param string $newcat New Cat code
 * @return bool
 * @global CotDB $db
 */
function cot_brs_updatecat($oldcat, $newcat)
{
    return (bool) cot::$db->update(brs_model_Banner::tableName(), array("category" => $newcat), "category='" . cot::$db->prep($oldcat) . "'");
}