| @@ -7,8 +7,10 @@ | ||
| 7 | 7 | * @author Tobias Bäthge |
| 8 | 8 | * @since 1.0.0 |
| 9 | 9 | */ |
| 10 | 10 | |
| 11 | +declare(strict_types=1); | |
| 12 | + | |
| 11 | 13 | // Prohibit direct script loading. |
| 12 | 14 | defined( 'ABSPATH' ) || die( 'No direct script access allowed!' ); |
| 13 | 15 | |
| 14 | 16 | /** |
| @@ -146,9 +148,9 @@ | ||
| 146 | 148 | $table = array( |
| 147 | 149 | 'id' => $table_id, |
| 148 | 150 | 'name' => $post->post_title, |
| 149 | 151 | 'description' => $post->post_excerpt, |
| 150 | - 'author' => $post->post_author, | |
| 152 | + 'author' => (int) $post->post_author, | |
| 151 | 153 | // 'created' => $post->post_date, |
| 152 | 154 | 'last_modified' => $post->post_modified, |
| 153 | 155 | ); |
| 154 | 156 | |