From c980b5b2bb747fdd7b70868f66313bee4e365f7b Mon Sep 17 00:00:00 2001 From: Matteo Scaramuccia Date: Tue, 2 Apr 2013 22:07:09 +0200 Subject: [PATCH] MDL-38545 Reports: PHP Strict Standards error in graph.php --- report/log/graph.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/report/log/graph.php b/report/log/graph.php index 842f84706c1..58a49cb9ff1 100644 --- a/report/log/graph.php +++ b/report/log/graph.php @@ -130,6 +130,7 @@ if ($type === "usercourse.png") { $graph = new graph(750, 400); + $a = new stdClass(); $a->coursename = format_string($course->shortname, true, array('context' => $coursecontext)); $a->username = fullname($user, true); $graph->parameter['title'] = get_string("hitsoncourse", "", $a); @@ -191,6 +192,7 @@ if ($type === "usercourse.png") { $graph = new graph(750, 400); + $a = new stdClass(); $a->coursename = format_string($course->shortname, true, array('context' => $coursecontext)); $a->username = fullname($user, true); $graph->parameter['title'] = get_string("hitsoncoursetoday", "", $a);