diff --git a/settings/ajax/apps/ocs.php b/settings/ajax/apps/ocs.php
index 5a326c125f683b70efa0e3da2d6c54f527d24350..082f1cfb922412fb9702d011b0f892939a7eac54 100644
--- a/settings/ajax/apps/ocs.php
+++ b/settings/ajax/apps/ocs.php
@@ -35,7 +35,7 @@ if(is_array($catagoryNames)){
 		// show only external apps that aren't enabled yet
 		$local=false;
 		foreach($enabledApps as $a){
-			if($a['name'] == $app['name']) {
+			if($a == $app['name']) {
 				$local=true;
 			}
 		}