[svn r16201] Minor - Multiline in the lp author

skala
Julio Montoya 17 years ago
parent 9c88f3f5b1
commit 540c00afd2
  1. 6
      main/newscorm/lp_controller.php

@ -575,10 +575,10 @@ switch($action)
else{
$_SESSION['refresh'] = 1;
$_SESSION['oLP']->set_name($_REQUEST['lp_name']);
$author= $_REQUEST['lp_author'];
$author= $_REQUEST['lp_author'];
//fixing the author name (no body or html tags)
$len = strripos($author,'</p>')-strpos($author,'<p>');
$author_fixed=substr($author,strpos($author,'<p>'), $len+4);
$len = strripos($author,'</p>')-stripos($author,'<p>');
$author_fixed=substr($author,stripos($author,'<p>'), $len+4);
$_SESSION['oLP']->set_author($author_fixed);
$_SESSION['oLP']->set_encoding($_REQUEST['lp_encoding']);

Loading…
Cancel
Save