Created
October 10, 2012 03:11
-
-
Save ienliven/3862955 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Index: cms/moodle/mod/ibis/lib.php | |
| =================================================================== | |
| --- cms/moodle/mod/ibis/lib.php (.../2012_09_RC_v33.5/src/cms/moodle) (revision 7894) | |
| +++ cms/moodle/mod/ibis/lib.php (.../2012_10_releasecandidate_newdb_v33.5/src/cms/moodle) (working copy) | |
| ... | |
| - //Error handling (retry loop) | |
| - do { | |
| - $result = QDB::question("ibis-cms",$sql); | |
| - | |
| - if ($result === FALSE) { | |
| - error_log("Unable to get answer from database as to whether assignment ID #" . (int) $wid . " has been attempted by students or not."); | |
| - $retry_wait_time = ($retry_wait_time + 1) * 2; | |
| - sleep($retry_wait_time); | |
| - } | |
| - } while ($result === FALSE); | |
| - | |
| + $result = QDB::question("ibis-cms",$sql); | |
| + if ($result === FALSE) { | |
| + error_log("Unable to get answer from database as to whether assignment ID #" . (int) $wid . " has been attempted by students or not."); | |
| + return FALSE; | |
| + } |
Author
Author
possible cause and solution admin slownes.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
and fix bellow.