Changeset 319


Ignore:
Timestamp:
Jan 24, 2004, 11:57:36 PM (20 years ago)
Author:
z0rglub
Message:

Php Warnings correction

Location:
branches/release-1_3
Files:
5 edited

Legend:

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

    r255 r319  
    119119$vtp->setVar( $sub, 'cat:name', $cat_name );
    120120// cat dir
    121 if ( $row['dir'] != '' )
     121if ( isset( $row['dir'] ) and $row['dir'] != '' )
    122122{
    123123  $vtp->addSession( $sub, 'storage' );
     
    138138}
    139139$vtp->setVar( $sub, 'name',    $row['name'] );
     140if ( !isset( $row['comment'] ) ) $row['comment'] = '';
    140141$vtp->setVar( $sub, 'comment', $row['comment'] );
    141142// status : public, private...
  • branches/release-1_3/admin/include/functions.php

    r311 r319  
    321321  $status = $row['status'];
    322322  // retrieving all the restricted categories for this user
    323   $restricted_cat = explode( ',', $row['forbidden_categories'] );
     323  if ( isset( $row['forbidden_categories'] ) )
     324    $restricted_cat = explode( ',', $row['forbidden_categories'] );
     325  else
     326    $restricted_cat = array();
    324327  // retrieving all the favorites for this user and comparing their
    325328  // categories to the restricted categories
  • branches/release-1_3/admin/thumbnail.php

    r280 r319  
    359359    $vtp->setVar( $sub, 'params.action', add_session_id( $url ) );
    360360    // GD version selected...
    361     if ( $_POST['gd'] == 1 )
     361    if ( isset( $_POST['gd'] ) and $_POST['gd'] == 1 )
    362362    {
    363363      $vtp->setVar( $sub, 'params.gd1_checked', ' checked="checked"' );
     
    387387    // options for the number of picture to miniaturize : "n"
    388388    $options = array( 5,10,20,40 );
     389    if ( isset( $_POST['n'] ) ) $n = $_POST['n'];
     390    else                        $n = 5;
    389391    foreach ( $options as $option ) {
    390392      $vtp->addSession( $sub, 'n_option' );
    391393      $vtp->setVar( $sub, 'n_option.option', $option );
    392       if ( $option == $_POST['n'] )
     394      if ( $option == $n )
    393395      {
    394396        $vtp->setVar( $sub, 'n_option.selected', ' selected="selected"' );
  • branches/release-1_3/admin/waiting.php

    r177 r319  
    117117  $vtp->setVar( $sub, 'picture.file', $row['file'] );
    118118  // is there an existing associated thumnail ?
    119   if ( $row['tn_ext'] != '' )
     119  if ( isset( $row['tn_ext'] ) and $row['tn_ext'] != '' )
    120120  {
    121121    $vtp->addSession( $sub, 'thumbnail' );
  • branches/release-1_3/include/functions_category.inc.php

    r313 r319  
    237237 
    238238  $row = mysql_fetch_array( mysql_query( $query ) );
     239
     240  if ( !isset( $row['total'] ) ) $row['total'] = 0;
    239241
    240242  return $row['total'];
Note: See TracChangeset for help on using the changeset viewer.