Please refer to this PHP code: https://github.com/jleyva/moodle-block_configurablereports/blob/MOODLE_36_STABLE/block_configurable_reports.php#L182
Line 182 uses the $DB object to get data from a sql database and then puts the result in the $lastcron variable.
The next line evaluates the $lastcron variable like this:
if (!$lastcron and ($lastcron + $this->cron < time()) )
Please explain this code to me!
Should that if() statement use !$lastcron or $lastcron at the beginning of the if() statement? In other words, should it be:
if (!$lastcron and ($lastcron + $this->cron < time()) )
or
if ($lastcron and ($lastcron + $this->cron < time()) )