Notice: unserialize() [function.unserialize]: Error at offset 10 of 1801 bytes in C:\Inetpub\wwwroot\moodle\course\lib.php on line 509
I can go to the line of code but i dont know what offset means.
and there don't appear to be any errors in the code take a look
function print_section($course, $section, $mods, $modnamesused, $absolute=false, $width="100%") {
global $CFG;
$modinfo = unserialize($course->modinfo);
echo "<TABLE WIDTH=\"$width\"><TR><TD>\n";
if ($section->sequence) {
$sectionmods = explode(",", $section->sequence);
foreach ($sectionmods as $modnumber) {
$mod = $mods[$modnumber];
$instancename = urldecode($modinfo[$modnumber]->name);
echo "<IMG SRC=\"$CFG->wwwroot/mod/$mod->modname/icon.gif\" HEIGHT=16 WIDTH=16 ALT=\"$mod->modfullname\">";
echo " <FONT SIZE=2><A TITLE=\"$mod->modfullname\"";
echo " HREF=\"$CFG->wwwroot/mod/$mod->modname/view.php?id=$mod->id\">$instancename</A></FONT>";
if (isediting($course->id)) {
echo " ";
echo make_editing_buttons($mod->id, $absolute);
}
echo "<BR>\n";
}
}
echo "</TD></TR></TABLE><BR>\n\n";
}
I actually couldn't tell you if this code looks all correct or not since i am inexperienced with true PHP coding. but i need to get this class i am running with this software working any clues help please!! 😕