Changeset 319
- Timestamp:
- Jan 24, 2004, 11:57:36 PM (20 years ago)
- Location:
- branches/release-1_3
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/release-1_3/admin/cat_modify.php
r255 r319 119 119 $vtp->setVar( $sub, 'cat:name', $cat_name ); 120 120 // cat dir 121 if ( $row['dir'] != '' )121 if ( isset( $row['dir'] ) and $row['dir'] != '' ) 122 122 { 123 123 $vtp->addSession( $sub, 'storage' ); … … 138 138 } 139 139 $vtp->setVar( $sub, 'name', $row['name'] ); 140 if ( !isset( $row['comment'] ) ) $row['comment'] = ''; 140 141 $vtp->setVar( $sub, 'comment', $row['comment'] ); 141 142 // status : public, private... -
branches/release-1_3/admin/include/functions.php
r311 r319 321 321 $status = $row['status']; 322 322 // 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(); 324 327 // retrieving all the favorites for this user and comparing their 325 328 // categories to the restricted categories -
branches/release-1_3/admin/thumbnail.php
r280 r319 359 359 $vtp->setVar( $sub, 'params.action', add_session_id( $url ) ); 360 360 // GD version selected... 361 if ( $_POST['gd'] == 1 )361 if ( isset( $_POST['gd'] ) and $_POST['gd'] == 1 ) 362 362 { 363 363 $vtp->setVar( $sub, 'params.gd1_checked', ' checked="checked"' ); … … 387 387 // options for the number of picture to miniaturize : "n" 388 388 $options = array( 5,10,20,40 ); 389 if ( isset( $_POST['n'] ) ) $n = $_POST['n']; 390 else $n = 5; 389 391 foreach ( $options as $option ) { 390 392 $vtp->addSession( $sub, 'n_option' ); 391 393 $vtp->setVar( $sub, 'n_option.option', $option ); 392 if ( $option == $ _POST['n'])394 if ( $option == $n ) 393 395 { 394 396 $vtp->setVar( $sub, 'n_option.selected', ' selected="selected"' ); -
branches/release-1_3/admin/waiting.php
r177 r319 117 117 $vtp->setVar( $sub, 'picture.file', $row['file'] ); 118 118 // is there an existing associated thumnail ? 119 if ( $row['tn_ext'] != '' )119 if ( isset( $row['tn_ext'] ) and $row['tn_ext'] != '' ) 120 120 { 121 121 $vtp->addSession( $sub, 'thumbnail' ); -
branches/release-1_3/include/functions_category.inc.php
r313 r319 237 237 238 238 $row = mysql_fetch_array( mysql_query( $query ) ); 239 240 if ( !isset( $row['total'] ) ) $row['total'] = 0; 239 241 240 242 return $row['total'];
Note: See TracChangeset
for help on using the changeset viewer.