Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-38147 fixed bug with windows PHP different function behaviour

  • Loading branch information...
commit 0a02b80cdaa2c3412a071024d33cab364b4164ae 1 parent 5e71c37
@marinaglancy marinaglancy authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/coursecatlib.php
View
2  lib/coursecatlib.php
@@ -123,7 +123,7 @@ public function __get($name) {
if (array_key_exists($name, self::$coursecatfields)) {
if ($this->$name === false) {
// property was not retrieved from DB, retrieve all not retrieved fields
- $notretrievedfields = array_diff(self::$coursecatfields, array_filter(self::$coursecatfields));
+ $notretrievedfields = array_diff_key(self::$coursecatfields, array_filter(self::$coursecatfields));
$record = $DB->get_record('course_categories', array('id' => $this->id),
join(',', array_keys($notretrievedfields)), MUST_EXIST);
foreach ($record as $key => $value) {
Please sign in to comment.
Something went wrong with that request. Please try again.