mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
Merge branch 'MDL-72578-master' of git://github.com/ferranrecio/moodle
This commit is contained in:
commit
edb655e35c
28 changed files with 1286 additions and 189 deletions
|
@ -232,7 +232,8 @@ abstract class info {
|
|||
* @return bool True if activity is available for all
|
||||
*/
|
||||
public function is_available_for_all() {
|
||||
if (is_null($this->availability)) {
|
||||
global $CFG;
|
||||
if (is_null($this->availability) || !empty($CFG->enableavailability)) {
|
||||
return true;
|
||||
} else {
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue