Changeset 2446
- Timestamp:
- 09/05/08 03:41:09 (3 months ago)
- Files:
-
- 1 modified
-
trunk/htdocs/system/classes/post.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/htdocs/system/classes/post.php
r2440 r2446 471 471 /* Now, let's insert any *new* tag texts or slugs into the tags table */ 472 472 $repeat_questions= Utils::placeholder_string( count($clean_tags) ); 473 $sql_tags_exist= 'SELECT id, tag_text, tag_slug473 $sql_tags_exist= "SELECT id, tag_text, tag_slug 474 474 FROM {tags} 475 475 WHERE tag_text IN ({$repeat_questions}) 476 OR tag_slug IN ({$repeat_questions}) ';476 OR tag_slug IN ({$repeat_questions})"; 477 477 $params= array_merge( array_keys( $clean_tags ), array_values( $clean_tags ) ); 478 478 $existing_tags= DB::get_results( $sql_tags_exist, $params ); … … 546 546 */ 547 547 $repeat_questions= Utils::placeholder_string( count($tag_ids_to_post) ); 548 $sql_delete= 'DELETE FROM {tag2post} WHERE post_id = ? AND tag_id NOT IN ({$repeat_questions})';548 $sql_delete= "DELETE FROM {tag2post} WHERE post_id = ? AND tag_id NOT IN ({$repeat_questions})"; 549 549 $params= array_merge( (array) $post_id, array_values( $tag_ids_to_post ) ); 550 550 $result&= DB::query( $sql_delete, $params );
