Ignore:
Timestamp:
Jan 15, 2004, 1:11:00 AM (21 years ago)
Author:
gweltas
Message:

Corretion of PHP warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/release-1_3/category.php

    r276 r279  
    463463                  get_cat_display_name( $page['cat_name'], ' - ',
    464464                                        'font-style:italic;' ) );
    465   }
    466   else
    467   {
    468     $vtp->setVar( $handle, 'cat_infos.cat_name', $page['title'] );
    469   }
    470   // upload a picture in the category
    471   if ( $page['cat_site_id'] == 1
     465        // upload a picture in the category
     466        if ( $page['cat_site_id'] == 1
    472467       and $conf['upload_available']
    473468       and $page['cat_uploadable'] )
    474   {
    475     $vtp->addSession( $handle, 'upload' );
    476     $url = './upload.php?cat='.$page['cat'].'&expand='.$page['expand'];
    477     $vtp->setVar( $handle, 'upload.url', add_session_id( $url ) );
    478     $vtp->closeSession( $handle, 'upload' );
    479   }
     469        {
     470        $vtp->addSession( $handle, 'upload' );
     471            $url = './upload.php?cat='.$page['cat'].'&expand='.$page['expand'];
     472        $vtp->setVar( $handle, 'upload.url', add_session_id( $url ) );
     473            $vtp->closeSession( $handle, 'upload' );
     474        }
     475  }
     476  else
     477  {
     478    $vtp->setVar( $handle, 'cat_infos.cat_name', $page['title'] );
     479  }
     480 
    480481  $vtp->closeSession( $handle, 'cat_infos' );
    481482}
Note: See TracChangeset for help on using the changeset viewer.