Permalink
Browse files

MDL-38147 fixed bug with windows PHP different function behaviour

  • Loading branch information...
marinaglancy committed Mar 27, 2013
1 parent 5e71c37 commit 0a02b80cdaa2c3412a071024d33cab364b4164ae
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/coursecatlib.php
View
@@ -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) {

0 comments on commit 0a02b80

Please sign in to comment.