[svn r15169] Minor: removed notice-level errors

skala
Yannick Warnier 17 years ago
parent 0a3f7fb196
commit f0a4d6ba1a
  1. 14
      main/auth/profile.php
  2. 13
      main/inc/lib/formvalidator/Element/html_editor.php
  3. 6
      main/inc/lib/usermanager.lib.php

@ -1,4 +1,4 @@
<?php // $Id: profile.php 15102 2008-04-25 08:22:09Z elixir_inter $
<?php // $Id: profile.php 15169 2008-04-29 06:27:22Z yannoo $
/*
==============================================================================
Dokeos - elearning and course management software
@ -527,26 +527,26 @@ function upload_user_production($user_id)
*/
$filtered_extension = false;
if ($_SESSION['profile_update'])
if (!empty($_SESSION['profile_update']))
{
$update_success = ($_SESSION['profile_update'] == 'success');
unset($_SESSION['profile_update']);
}
if ($_SESSION['image_uploaded'])
if (!empty($_SESSION['image_uploaded']))
{
$upload_picture_success = ($_SESSION['image_uploaded'] == 'success');
unset($_SESSION['image_uploaded']);
}
if ($_SESSION['production_uploaded'])
if (!empty($_SESSION['production_uploaded']))
{
$upload_production_success = ($_SESSION['production_uploaded'] == 'success');
unset($_SESSION['production_uploaded']);
}
elseif ($_POST['remove_production'])
elseif (isset($_POST['remove_production']))
{
foreach (array_keys($_POST['remove_production']) as $production)
{
@ -667,11 +667,11 @@ elseif ($form->validate())
*/
Display :: display_header(get_lang('ModifyProfile'));
if ($file_deleted)
if (!empty($file_deleted))
{
Display :: display_normal_message(get_lang('FileDeleted'),false);
}
elseif ($update_success)
elseif (!empty($update_success))
{
$message=get_lang('ProfileReg');

@ -1,5 +1,5 @@
<?php
// $Id: html_editor.php 14373 2008-02-26 00:48:45Z yannoo $
// $Id: html_editor.php 15169 2008-04-29 06:27:22Z yannoo $
/*
==============================================================================
Dokeos - elearning and course management software
@ -60,11 +60,11 @@ class HTML_QuickForm_html_editor extends HTML_QuickForm_textarea
$this -> fck_editor = new FCKeditor($name);
$this -> fck_editor->BasePath = api_get_path(REL_PATH).'main/inc/lib/fckeditor/';
$this -> fck_editor->Width = $fck_attribute['Width'] ? $fck_attribute['Width'] : '990';
$this -> fck_editor->Height = $fck_attribute['Height'] ? $fck_attribute['Height'] : '400';
$this -> fck_editor->Width = !empty($fck_attribute['Width']) ? $fck_attribute['Width'] : '990';
$this -> fck_editor->Height = !empty($fck_attribute['Height']) ? $fck_attribute['Height'] : '400';
//We get the optionnals config parameters in $fck_attribute array
$this -> fck_editor->Config = $fck_attribute['Config'] ? $fck_attribute['Config'] : array();
$this -> fck_editor->Config = !empty($fck_attribute['Config']) ? $fck_attribute['Config'] : array();
@ -93,7 +93,7 @@ class HTML_QuickForm_html_editor extends HTML_QuickForm_textarea
$this -> fck_editor->Config['DefaultLanguage'] = $isocode_language;
if($_SESSION['_course']['path']!=''){
if(isset($_SESSION['_course']) && $_SESSION['_course']['path']!=''){
$upload_path = api_get_path(REL_COURSE_PATH).$_SESSION['_course']['path'].'/document/';
}else{
@ -176,6 +176,7 @@ class HTML_QuickForm_html_editor extends HTML_QuickForm_textarea
*/
function build_FCKeditor()
{
$result = '';
if(! FCKeditor :: IsCompatible())
{
return parent::toHTML();
@ -188,4 +189,4 @@ class HTML_QuickForm_html_editor extends HTML_QuickForm_textarea
return $result;
}
}
?>
?>

@ -1,4 +1,4 @@
<?php // $Id: usermanager.lib.php 15086 2008-04-25 04:31:27Z yannoo $
<?php // $Id: usermanager.lib.php 15169 2008-04-29 06:27:22Z yannoo $
/*
==============================================================================
Dokeos - elearning and course management software
@ -614,7 +614,7 @@ class UserManager
*/
function build_production_list($user_id, $force = false, $showdelete=false)
{
if (!$force && $_POST['remove_production'])
if (!$force && !empty($_POST['remove_production']))
return true; // postpone reading from the filesystem
$productions = UserManager::get_user_productions($user_id);
@ -1208,4 +1208,4 @@ class UserManager
return $personal_course_list;
}
}
?>
?>

Loading…
Cancel
Save