[svn r20246] FS#4137 - Fixing a wrong parenthesis in fileUpload.lib.php.

skala
Ivan Tcholakov 16 years ago
parent 77b8bb3554
commit 68c6c770bb
  1. 2
      main/inc/lib/fileUpload.lib.php

@ -1172,7 +1172,7 @@ function add_document($_course,$path,$filetype,$filesize,$title,$comment=NULL, $
$sql="INSERT INTO $table_document
(`path`,`filetype`,`size`,`title`, `comment`, readonly)
VALUES ('$path','$filetype','$filesize','".
Database::escape_string(htmlspecialchars($title),ENT_QUOTES)."', '$comment',$readonly)";
Database::escape_string(htmlspecialchars($title,ENT_QUOTES))."', '$comment',$readonly)";
if(api_sql_query($sql,__FILE__,__LINE__))
{
//display_message("Added to database (id ".mysql_insert_id().")!");

Loading…
Cancel
Save