| @@ -10,8 +10,9 @@ | ||
| 10 | 10 | * |
| 11 | 11 | * @param string $title |
| 12 | 12 | * @param string $text |
| 13 | 13 | * @param bool $is_error When this is false, the message will not be logged to the error log if the logging add-on is unavailable. |
| 14 | + * | |
| 14 | 15 | * @return void |
| 15 | 16 | */ |
| 16 | 17 | public static function log_message( $title, $text, $is_error = true ) { |
| 17 | 18 | if ( ! class_exists( 'FrmLog' ) ) { |
| @@ -17,8 +18,9 @@ | ||
| 17 | 18 | if ( ! class_exists( 'FrmLog' ) ) { |
| 18 | 19 | if ( $is_error ) { |
| 19 | 20 | error_log( $title . ': ' . $text ); |
| 20 | 21 | } |
| 22 | + | |
| 21 | 23 | return; |
| 22 | 24 | } |
| 23 | 25 | |
| 24 | 26 | $log = new FrmLog(); |