From 74c7890fbb3e1b52c9207e15a886f2d3820d1f6c Mon Sep 17 00:00:00 2001
From: Michael Gapczynski <GapczynskiM@gmail.com>
Date: Sat, 27 Aug 2011 17:56:22 -0400
Subject: [PATCH] Fix undefined index license in Apps

---
 lib/ocsclient.php | 1 +
 settings/apps.php | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/ocsclient.php b/lib/ocsclient.php
index 4b71f4550e..654c5e0527 100644
--- a/lib/ocsclient.php
+++ b/lib/ocsclient.php
@@ -85,6 +85,7 @@ class OC_OCSClient{
 			$app['type']=(string)$tmp[$i]->typeid;
 			$app['typename']=(string)$tmp[$i]->typename;
 			$app['personid']=(string)$tmp[$i]->personid;
+			$app['license']=(string)$tmp[$i]->license;
 			$app['detailpage']=(string)$tmp[$i]->detailpage;
 			$app['preview']=(string)$tmp[$i]->smallpreviewpic1;
 			$app['changed']=strtotime($tmp[$i]->changed);
diff --git a/settings/apps.php b/settings/apps.php
index d5aafd628e..337a52fd41 100644
--- a/settings/apps.php
+++ b/settings/apps.php
@@ -57,7 +57,7 @@ if(is_array($catagoryNames)){
 			'active'=>false,
 			'description'=>$app['description'],
 			'author'=>$app['personid'],
-			'licence'=>$app['license'],
+			'license'=>$app['license'],
 		);
 	}
 }
-- 
GitLab