[svn r10626] update function api_item_property_update :

add the dbName parameters in the call of the function get_course_table in order to make it works even if we are not in a course
skala
Julian Prud'homme 19 years ago
parent 1d0bcb1481
commit 26e39572fd
  1. 2
      main/inc/lib/main_api.lib.php

@ -1390,7 +1390,7 @@ function api_item_property_update($_course, $tool, $item_id, $lastedit_type, $us
{
$time = time();
$time = date("Y-m-d H:i:s", $time);
$TABLE_ITEMPROPERTY = Database :: get_course_table(TABLE_ITEM_PROPERTY);
$TABLE_ITEMPROPERTY = Database :: get_course_table(TABLE_ITEM_PROPERTY,$_course['dbName']);
if ($to_user_id <= 0)
$to_user_id = NULL; //no to_user_id set
$start_visible = ($start_visible == 0) ? "0000-00-00 00:00:00" : $start_visible;

Loading…
Cancel
Save