← All changes
|
backend/src/Data/Transformers/PluginUpdatesTransformer.php
+2
-2
0.7.0.2
→
1.4.7
View file →
| @@ -32,9 +32,9 @@ | ||
| 32 | 32 | return [ |
| 33 | 33 | 'author' => $plugin->AuthorName, |
| 34 | 34 | 'authorURI' => $plugin->AuthorURI, |
| 35 | 35 | 'banner' => $banner, |
| 36 | - 'bannerSizes' => $update->banners, | |
| 36 | + 'bannerSizes' => isset( $update->banners ) ? $update->banners : null, | |
| 37 | 37 | 'content' => $plugin->Description, |
| 38 | 38 | 'id' => $update->plugin, |
| 39 | 39 | 'meta' => $plugin->Version . ' by ' . $plugin->AuthorName, |
| 40 | 40 | 'metaUpdated' => $update->new_version . ' by ' . $plugin->AuthorName, |
| @@ -45,9 +45,9 @@ | ||
| 45 | 45 | 'type' => 'plugin', |
| 46 | 46 | 'version' => $plugin->Version, |
| 47 | 47 | 'updatedVersion' => $update->new_version, |
| 48 | 48 | 'tested' => $update->tested, |
| 49 | - 'requiresPHP' => $update->requires_php, | |
| 49 | + 'requiresPHP' => isset( $update->requires_php ) ? $update->requires_php : null, | |
| 50 | 50 | 'pluginURI' => $plugin->PluginURI, |
| 51 | 51 | ]; |
| 52 | 52 | } |
| 53 | 53 | } |