From f45e85a78547394d30b30fd9386ce7d3dbc657fe Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Sun, 27 Jul 2008 22:23:00 +0200 Subject: [PATCH] [svn r15853] Fix HTTP 500 error when returning from another item of which prerequisites were not completed --- main/newscorm/lp_comm.server.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main/newscorm/lp_comm.server.php b/main/newscorm/lp_comm.server.php index 758b67bdbe..de1606d0e5 100644 --- a/main/newscorm/lp_comm.server.php +++ b/main/newscorm/lp_comm.server.php @@ -141,6 +141,8 @@ function save_item($lp_id,$user_id,$view_id,$item_id,$score=-1,$max=-1,$min=-1,$ } $mylpi->set_core_exit($core_exit); $mylp->save_item($item_id,false); + }else{ + return $objResponse; } $mystatus = $mylpi->get_status(false);