mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Merge branch 'MDL-27878' of git://github.com/timhunt/moodle
This commit is contained in:
commit
5017d4dc7d
@ -3060,8 +3060,9 @@ EOT;
|
||||
* @return void Echo's output
|
||||
*/
|
||||
private function _update($percent, $msg) {
|
||||
if (empty($this->time_start)){
|
||||
$this->time_start = microtime(true);
|
||||
if (empty($this->time_start)) {
|
||||
throw new coding_exception('You must call create() (or use the $autostart ' .
|
||||
'argument to the constructor) before you try updating the progress bar.');
|
||||
}
|
||||
|
||||
if (CLI_SCRIPT) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user