Changeset 31


Ignore:
Timestamp:
07/21/03 23:42:11 (17 years ago)
Author:
z0rglub
Message:

replacing "&&" by "and" in if conditions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/picture.php

    r26 r31  
    2222check_cat_id( $_GET['cat'] ); 
    2323check_login_authorization(); 
    24 if ( isset( $page['cat'] ) && is_numeric( $page['cat'] ) ) 
     24if ( isset( $page['cat'] ) and is_numeric( $page['cat'] ) ) 
    2525{ 
    2626  check_restrictions( $page['cat'] ); 
     
    433433} 
    434434//------------------------------------ admin link for information modifications 
    435 if ( $user['status'] == "admin" && is_numeric( $page['cat'] ) ) 
     435if ( $user['status'] == "admin" and is_numeric( $page['cat'] ) ) 
    436436{ 
    437437  $vtp->addSession( $handle, 'modification' ); 
     
    512512  $vtp->addSession( $handle, 'comments' ); 
    513513  // comment registeration 
    514   if ( isset( $_POST['content'] ) && $_POST['content'] != '' ) 
     514  if ( isset( $_POST['content'] ) and $_POST['content'] != '' ) 
    515515  { 
    516516    $author = $user['username']; 
     
    540540  // comment deletion 
    541541  if ( isset( $_GET['del'] ) 
    542        && is_numeric( $_GET['del'] ) 
    543        && $user['status'] == 'admin' ) 
     542       and is_numeric( $_GET['del'] ) 
     543       and $user['status'] == 'admin' ) 
    544544  { 
    545545    $query = 'DELETE FROM '.PREFIX_TABLE.'comments'; 
Note: See TracChangeset for help on using the changeset viewer.