Ignore:
Timestamp:
Jan 13, 2004, 12:41:53 AM (21 years ago)
Author:
gweltas
Message:

Minor corrections of PHP warnings

Location:
branches/release-1_3/admin
Files:
3 edited

Legend:

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

    r180 r276  
    165165$vtp->setGlobalVar( $sub, 'user_template', $user['template'] );
    166166//--------------------------------------------------- number of days to display
    167 if ( isset( $_GET['last_days'] ) ) define( MAX_DAYS, $_GET['last_days'] );
    168 else                               define( MAX_DAYS, 0 );
     167if ( isset( $_GET['last_days'] ) ) define( 'MAX_DAYS', $_GET['last_days'] );
     168else                               define( 'MAX_DAYS', 0 );
    169169//----------------------------------------- non specific section initialization
    170170$array_cat_directories = array();
  • branches/release-1_3/admin/include/functions.php

    r270 r276  
    870870  else
    871871    $query.= 'NULL';
    872   $queries .= ' WHERE id = '.$row['id'];
     872  $query .= ' WHERE id = $user_id';
    873873  $query.= ';';
    874874  mysql_query( $query );
  • branches/release-1_3/admin/update.php

    r272 r276  
    2525 
    2626  $uppercats = '';
    27                
     27  $output = '';
    2828  // 0. retrieving informations on the category to display
    2929  $cat_directory = '../galleries';
     
    293293  // inserting the pictures found in the directory
    294294  foreach ( $pictures as $picture ) {
     295        $name = '';
     296        $author = '';
     297        $comment = '';
     298        if (isset ($picture['name'])) $name = $picture['name'];
     299        if (isset ($picture['author'])) $author = $picture['author'];
     300        if (isset ($picture['comment'])) $comment = $picture['comment'];
     301 
    295302    $query = 'INSERT INTO '.PREFIX_TABLE.'images';
    296303    $query.= ' (file,storage_category_id,date_available,tn_ext';
     
    301308    $query.= ",'".$picture['date']."','".$picture['tn_ext']."'";
    302309    $query.= ",'".$picture['filesize']."','".$picture['width']."'";
    303     $query.= ",'".$picture['height']."','".$picture['name']."'";
    304     $query.= ",'".$picture['author']."','".$picture['comment']."'";
    305     if ( $picture['date_creation'] != '' )
     310    $query.= ",'".$picture['height']."','$name', '$author', '$comment'";
     311    if ( isset ($picture['date_creation']))
    306312    {
    307313      $query.= ",'".$picture['date_creation']."'";
     
    588594//-------------------------------------------- introduction : choices of update
    589595// Display choice if "update" var is not specified
    590 check_cat_id( $_GET['update'] );
    591 if ( !isset( $_GET['update'] )
    592      and !( isset( $page['cat'] )
    593             or $_GET['update'] == 'cats'
    594             or $_GET['update'] == 'all' ) )
     596if (!isset( $_GET['update'] ))
    595597{
    596598  $vtp->addSession( $sub, 'introduction' );
     
    606608else
    607609{
     610  check_cat_id( $_GET['update'] );
    608611  $start = get_moment();
    609612  $count_new = 0;
Note: See TracChangeset for help on using the changeset viewer.