Changeset 24

Show
Ignore:
Timestamp:
12/01/06 10:53:25 (2 years ago)
Author:
sven
Message:

friendicon: removed undefined constant, html validation fixes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • friendicon/mod/friendicon/lib.php

    r21 r24  
    9494        $action = optional_param('action'); 
    9595        $id = optional_param('id',0,PARAM_INT); 
    96         $friendicon_sidebar = optional_param('friendicon_sidebar','false',TEXT); 
     96        $friendicon_sidebar = optional_param('friendicon_sidebar','false'); 
    9797        $friendicon_sidebar_db = user_flag_get('friendicon_sidebar', $id); 
    9898 
  • friendicon/mod/friendicon/user_info.php

    r20 r24  
    1212 
    1313    $body  = ""; 
    14     $body .= "<span>\n"; 
    1514    $body .= "<table>\n\t<tr>\n"; 
    1615    $cellnum = -1; 
     
    3433        if ($icon = user_flag_get('friendicon_sidebar', $USER->ident)) { 
    3534            $body .= <<< END 
    36         <td/
     35        <td
    3736        <a href="{$CFG->wwwroot}{$info->username}/"> 
    38             <img src="{$CFG->wwwroot}_icon/user/{$ident}/w/50"/ alt="{$username}"
     37            <img src="{$CFG->wwwroot}_icon/user/{$ident}/w/50" alt="{$username}" /
    3938        </a> 
    4039        <br/> 
     
    4847 
    4948    $body .= "\t</tr>\n</table>\n"; 
    50     $body .= "</span>"; 
    5149     
    5250    if ($page_owner != $_SESSION['userid']) {