[svn r19838] minor - logic changes - fixed error sql in learnpath- (partial FS#3909)

skala
Isaac Flores 16 years ago
parent a0633cda6a
commit fbb8ae0a32
  1. 2
      main/newscorm/lp_edit_item.php

@ -207,7 +207,7 @@ echo '<table cellpadding="0" cellspacing="0" class="lp_build">';
$path_item = isset($_GET['path_item'])?$_GET['path_item']:0;
$path_item = Database::escape_string($path_item);
$tbl_doc = Database :: get_course_table(TABLE_DOCUMENT);
$sql_doc = "SELECT path FROM " . $tbl_doc . " WHERE id = " . $path_item;
$sql_doc = "SELECT path FROM " . $tbl_doc . " WHERE id = '". $path_item."' ";
$res_doc=api_sql_query($sql_doc, __FILE__, __LINE__);
$path_file=Database::result($res_doc,0,0);
$path_parts = pathinfo($path_file);

Loading…
Cancel
Save