Ignore:
Timestamp:
Jan 15, 2004, 6:06:45 PM (20 years ago)
Author:
gweltas
Message:

Correction of php warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/release-1_3/include/functions_category.inc.php

    r276 r280  
    407407{
    408408  pwg_debug( 'start initialize_category' );
    409   global $page,$lang,$user,$conf;
     409  global $page,$lang,$user,$conf, $where_append;
    410410
    411411  if ( isset( $page['cat'] ) )
     
    538538        $conf['order_by'] = ' ORDER BY hit DESC, file ASC';
    539539        $page['cat_nb_images'] = $conf['top_number'];
    540         if ( $page['start'] + $user['nb_image_page'] >= $conf['top_number'] )
     540        if ( isset($page['start']) &&  ($page['start']+ $user['nb_image_page'] >= $conf['top_number'] ))
    541541        {
    542542          $page['nb_image_page'] = $conf['top_number'] - $page['start'];
     
    544544      }
    545545
    546       if ( $query != '' )
     546      if ( isset($query))
    547547      {
    548548        $result = mysql_query( $query );
Note: See TracChangeset for help on using the changeset viewer.