| @@ -287,9 +287,9 @@ | ||
| 287 | 287 | */ |
| 288 | 288 | $message = '[' . wp_date( 'c' ) . '] ' . $message . PHP_EOL; |
| 289 | 289 | |
| 290 | 290 | if ( $this->has_method( 'get_log_path' ) ) { |
| 291 | - if ( ! empty( $category ) && 0 === preg_match( '/\.log$/', $category ) ) { | |
| 291 | + if ( '' !== $category && 0 === preg_match( '/\.log$/', $category ) ) { | |
| 292 | 292 | $category .= '.log'; |
| 293 | 293 | } |
| 294 | 294 | |
| 295 | 295 | $file_path = $this->get_log_path( $category ); |