Skip to content
Snippets Groups Projects
Commit 5c444c2d authored by Vincent Petry's avatar Vincent Petry
Browse files

Merge pull request #9468 from owncloud/fix_logout_error_messages

better validation: cadd extra check if appinfo/info.xml exists
parents 6e9905d7 1565089c
No related branches found
No related tags found
No related merge requests found
......@@ -574,7 +574,7 @@ class OC_App {
* Read all app metadata from the info.xml file
* @param string $appid id of the app or the path of the info.xml file
* @param boolean $path (optional)
* @return array
* @return array|null
* @note all data is read from info.xml, not just pre-defined fields
*/
public static function getAppInfo($appid, $path = false) {
......@@ -587,6 +587,9 @@ class OC_App {
$file = self::getAppPath($appid) . '/appinfo/info.xml';
}
$data = array();
if (!file_exists($file)) {
return null;
}
$content = @file_get_contents($file);
if (!$content) {
return null;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment