Index: restorelib.php =================================================================== RCS file: /cvsroot/moodle/moodle/backup/restorelib.php,v retrieving revision 1.283.2.23 diff -c -r1.283.2.23 restorelib.php *** restorelib.php 7 Feb 2008 18:48:53 -0000 1.283.2.23 --- restorelib.php 14 Feb 2008 08:38:36 -0000 *************** *** 1210,1219 **** // Get info from xml // info will contain the number of record to process ! $info = restore_read_xml_gradebook($restore, $xml_file); ! ! // If we have info, then process ! if ($info <= 0) { return $status; } --- 1210,1216 ---- // Get info from xml // info will contain the number of record to process ! if (!($info = restore_read_xml_gradebook($restore, $xml_file))) { return $status; }