Changeset 1218
- Timestamp:
- 03/04/2008 11:28:13 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bb-includes/functions.php
r1203 r1218 253 253 $topic_title = apply_filters( 'pre_topic_title', $topic_title, $topic_id ); 254 254 $topic_title = bb_trim_for_db( $topic_title, 150 ); 255 if ( !$topic_title)255 if ( strlen($topic_title) < 1 ) 256 256 return false; 257 257 } … … 264 264 $topic_slug = $_topic_slug = bb_slug_sanitize( $topic_slug ? $topic_slug : $topic_title ); 265 265 if ( strlen( $_topic_slug ) < 1 ) 266 return false;266 $topic_slug = $_topic_slug = '0'; 267 267 268 268 while ( is_numeric($topic_slug) || $existing_slug = $bbdb->get_var( $bbdb->prepare( $slug_sql, $topic_slug, $topic_id ) ) )
Note: See TracChangeset
for help on using the changeset viewer.