It's a small section of a large cron script which I was supposed to be going through and editing.
if ($s > 0)
{
mtrace ($s.' course(s) were skipped (duplicate ShortName)');
}
if ($p > 0)
{
mtrace ($p.' course(s) could not be fully created, due to errors. Though they make work, it is advisable to delete them and try again.');
}
if (($e = $t - $n - $s - $p) > 0)
{
mtrace ($e.' course(s) failed due to errors');
}
if ($cat_e > 0)
{
mtrace ($cat_e.' new category(ies) failed due to errors');
}
if ($cat_c > 0)
{
mtrace ($cat_c.' new category(ies) were created');
mtrace ('You may wish to manually Re-Sort the categories');
// We don't automatically sort alphabetically, as the somewhat clunky category sorting
// method used by moodle could annoy the user
}
Yeah I didn't have a clue either. When I eventually found $s, $p, $n, $t, etc... the letters weren't even anything to do with what the variable stood for.
Gave up in the end and just re-wrote the entire thing my way, works much better now.

New Topic/Question
Reply




MultiQuote








|