Wrote this:
<?php
define('CLI_SCRIPT', true);
require(_DIR_.'/../../config.php');
require_once($CFG->dirroot.'/course/lib.php');
$catid = 100;
$cat = core_course_category::get($catid);
when CLI running it - $cat is not initialized and remains null.
HELP ?
thanks..