- Timestamp:
- Jan 22, 2004, 12:33:56 AM (21 years ago)
- Location:
- branches/release-1_3
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/release-1_3/admin/comments.php
r276 r311 37 37 $subrow = mysql_fetch_array( $subresult ); 38 38 39 if ( $array_cat_directories[$subrow['cat_id']] == '')39 if ( !isset( $array_cat_directories[$subrow['cat_id']] ) ) 40 40 { 41 41 $array_cat_directories[$subrow['cat_id']] = -
branches/release-1_3/admin/include/functions.php
r306 r311 405 405 // if the category has no representative picture (ie 406 406 // representative_picture_id == NULL) we don't update anything 407 if ( $row['representative_picture_id'] != '')407 if ( isset( $row['representative_picture_id'] ) ) 408 408 { 409 409 $query = 'SELECT image_id'; … … 692 692 $uppercat = $page['plain_structure'][$category_id]['id_uppercat']; 693 693 694 while ( $uppercat != ' ' )694 while ( $uppercat != 'NULL' ) 695 695 { 696 696 array_push( $uppercats, $uppercat ); -
branches/release-1_3/admin/infos_images.php
r308 r311 180 180 while ( $row = mysql_fetch_array( $result ) ) 181 181 { 182 $specific_keywords = explode( ',', $row['keywords'] ); 182 if ( !isset( $row['keywords'] ) ) $specific_keywords = array(); 183 else $specific_keywords = explode( ',', $row['keywords'] ); 184 183 185 $common_keywords = get_keywords( $_POST['keywords_cat'] ); 184 186 // first possiblity : adding the given keywords to all the pictures -
branches/release-1_3/admin/picture_modify.php
r279 r311 96 96 // if the user ask this picture to be not any more the representative, 97 97 // we have to set the representative_picture_id of this category to NULL 98 else if ( $row['representative_picture_id'] == $_GET['image_id'] ) 98 else if ( isset( $row['representative_picture_id'] ) 99 and $row['representative_picture_id'] == $_GET['image_id'] ) 99 100 { 100 101 $query = 'UPDATE '.PREFIX_TABLE.'categories'; … … 187 188 $vtp->setVar( $sub, 'form_action', $action ); 188 189 // retrieving direct information about picture 189 $query = 'SELECT file,date_available,date_creation,tn_ext,name,filesize'; 190 $query.= ',width,height,author,comment,keywords,storage_category_id'; 190 $infos = array( 'file','date_available','date_creation','tn_ext','name' 191 ,'filesize','width','height','author','comment','keywords' 192 ,'storage_category_id' ); 193 $query = 'SELECT '. implode( ',', $infos ); 191 194 $query.= ' FROM '.PREFIX_TABLE.'images'; 192 195 $query.= ' WHERE id = '.$_GET['image_id']; 193 196 $query.= ';'; 194 197 $row = mysql_fetch_array( mysql_query( $query ) ); 198 199 foreach ( $infos as $info ) { 200 if ( !isset( $row[$info] ) ) $row[$info] = ''; 201 } 202 195 203 // picture title 196 204 if ( $row['name'] == '' ) … … 315 323 } 316 324 317 if ( $row['representative_picture_id'] == $_GET['image_id'] ) 325 if ( isset( $row['representative_picture_id'] ) 326 and $row['representative_picture_id'] == $_GET['image_id'] ) 318 327 { 319 328 $vtp->setVar( $sub, 'linked_category.representative_checked', -
branches/release-1_3/admin/user_list.php
r304 r311 59 59 $row = mysql_fetch_array( mysql_query( $query ) ); 60 60 // confirm user deletion ? 61 if ( $_GET['confirm'] != 1)61 if ( !isset( $_GET['confirm'] ) ) 62 62 { 63 63 $vtp->addSession( $sub, 'deletion' ); -
branches/release-1_3/category.php
r292 r311 286 286 $file = get_filename_wo_extension( $row['file'] ); 287 287 // name of the picture 288 if ( $row['name'] != '' ) $name = $row['name'];289 else 288 if ( isset( $row['name'] ) and $row['name'] != '' ) $name = $row['name']; 289 else $name = str_replace( '_', ' ', $file ); 290 290 291 291 if ( $page['cat'] == 'search' )
Note: See TracChangeset
for help on using the changeset viewer.