diff --git a/update.py b/update.py
index 539485bd..ad0f2377 100755
--- a/update.py
+++ b/update.py
@@ -502,7 +502,8 @@ for line in file(os.path.join('stats', 'latestapps.txt')):
for app in apps:
if app['id'] == appid:
data += app['Name'] + "\t"
- data += app['icon'] + "\n"
+ data += app['icon'] + "\t"
+ data += app['License'] + "\n"
break
f = open('repo/latestapps.dat', 'w')
f.write(data)
diff --git a/wp-fdroid/wp-fdroid.php b/wp-fdroid/wp-fdroid.php
index 6b7e829d..42d029f4 100644
--- a/wp-fdroid/wp-fdroid.php
+++ b/wp-fdroid/wp-fdroid.php
@@ -728,10 +728,13 @@ function widget_fdroidlatest($args) {
while (($buffer = fgets($handle, 4096)) !== false) {
$app = explode("\t", $buffer);
echo '';
- if(trim($app[2])) {
+ if(isset($app[2]) && trim($app[2])) {
echo '
';
}
echo $app[1].'
';
+ if(isset($app[3]) && trim($app[3])) {
+ echo ''.$app[3].'';
+ }
echo '
';
}
fclose($handle);