tengo esto
Código PHP:
Ver originalfunction GetCategories($type = null)
{
global $ipTV_db;
$ipTV_db->query('SELECT t1.* FROM `stream_categories` t1 WHERE t1.category_type = \'%s\' GROUP BY t1.id ORDER BY t1.cat_order ASC', $type);
} else {
$ipTV_db->query('SELECT t1.* FROM `stream_categories` t1 ORDER BY t1.cat_order ASC');
}
return $ipTV_db->num_rows() > 0 ?
$ipTV_db->get_rows(true, 'id') : array(); }
case 200:
$categories = GetCategories('movie');
foreach ($categories as $category) {
if (!ipTV_streaming::CategoriesBouq($category['id'], $result['bouquet'])) {
continue;
}
$output[] = array('category_id' => $category['id'], 'category_name' => $category['category_name'], 'parent_id' => 0); }
break;
y quiero agregar esto al principio