Changeset 633

Show
Ignore:
Timestamp:
10/13/06 02:33:47 (2 years ago)
Author:
sven
Message:

fix some PHP notices, and add missing CSS class to default template

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • devel/_templates/Default_Template/css

    r560 r633  
    199199 
    200200.clearme{clear:both;} 
     201.clearing{clear:both;} 
    201202  
    202203 
  • devel/mod/adash/lib.php

    r630 r633  
    8989             
    9090            $value = get_record_sql("select * from ".$CFG->prefix."dashboard_data where name = $name and widget = $ident"); 
    91             if ($value->value == false) { 
     91            if (empty($value) || $value->value == false) { 
    9292                $value->value = ""; 
    9393            } 
  • devel/search/index.php

    r545 r633  
    3636        $querystring = $CFG->wwwroot . "search/index.php?" . $querystring; 
    3737         
    38         $body .= "<p>" . gettext("Search for results from:") . " "; 
     38        $body = "<p>" . gettext("Search for results from:") . " "; 
    3939         
    4040        if ($PAGE->search_type  == "''") { 
  • devel/units/magpie/function_update.php

    r601 r633  
    6868                    } elseif (isset($item['issued'])) { 
    6969                        $posted = stripslashes($item['issued']); 
     70                    } elseif (isset($item['pubdate'])) { 
     71                        $posted = stripslashes($item['pubdate']); 
    7072                    } else { 
    71                         $posted = stripslashes($item['pubdate'])
     73                        $posted = ""
    7274                    } 
    7375                    $posted = str_replace("T"," ",$posted); 
     
    8789                        $added = (int) $item['date_timestamp']; 
    8890                    } 
    89                     if (!$added && ($posted == "" || !($added = @strtotime($posted))) ) { 
     91                    if (empty($added) && ($posted == "" || !($added = @strtotime($posted))) ) { 
    9092                        $added = $timenow; 
    9193                    } 
  • devel/units/weblogs/weblogs_posts_view.php

    r597 r633  
    128128        // looking at an individual post and its comments 
    129129 
    130         $commentsbody .= ""; 
     130        $commentsbody = ""; 
    131131             
    132132        if ($post->ident > 0) { 
     
    142142                        $commentmenu = <<< END 
    143143 
    144                 <p> 
     144                    <p> 
    145145                        [<a href="{$CFG->wwwroot}_weblog/action_redirection.php?action=weblog_comment_delete&amp;weblog_comment_delete={$comment->ident}" onclick="return confirm('$returnConfirm')">$Delete</a>] 
    146                 </p> 
     146                    </p> 
    147147END; 
    148148                    }