summaryrefslogtreecommitdiffstats
path: root/lib/private/App/CodeChecker
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-08-18 11:51:43 +0200
committerJoas Schilling <coding@schilljs.com>2016-08-18 11:53:26 +0200
commit3dba40db7b256eda1879c93b6768c021f2b9301a (patch)
tree64dab79c8be5646ea8e9f5d44e2fa4406fc6144a /lib/private/App/CodeChecker
parent5580a77bd703877541687b72d7ab4ec50b2b0c7d (diff)
downloadnextcloud-server-3dba40db7b256eda1879c93b6768c021f2b9301a.tar.gz
nextcloud-server-3dba40db7b256eda1879c93b6768c021f2b9301a.zip
Fix "Undefined index" when the values do not exist
Diffstat (limited to 'lib/private/App/CodeChecker')
-rw-r--r--lib/private/App/CodeChecker/InfoChecker.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/App/CodeChecker/InfoChecker.php b/lib/private/App/CodeChecker/InfoChecker.php
index 3ee99dc6478..77bf7e8182d 100644
--- a/lib/private/App/CodeChecker/InfoChecker.php
+++ b/lib/private/App/CodeChecker/InfoChecker.php
@@ -80,7 +80,7 @@ class InfoChecker extends BasicEmitter {
$info = $this->infoParser->parse($appPath . '/appinfo/info.xml');
- if (isset($info['dependencies']['owncloud']['@attributes']['min-version']) && ($info['requiremin'] || $info['require'])) {
+ if (isset($info['dependencies']['owncloud']['@attributes']['min-version']) && (isset($info['requiremin']) || isset($info['require']))) {
$this->emit('InfoChecker', 'duplicateRequirement', ['min']);
$errors[] = [
'type' => 'duplicateRequirement',
@@ -90,7 +90,7 @@ class InfoChecker extends BasicEmitter {
$this->emit('InfoChecker', 'missingRequirement', ['min']);
}
- if (isset($info['dependencies']['owncloud']['@attributes']['max-version']) && $info['requiremax']) {
+ if (isset($info['dependencies']['owncloud']['@attributes']['max-version']) && isset($info['requiremax'])) {
$this->emit('InfoChecker', 'duplicateRequirement', ['max']);
$errors[] = [
'type' => 'duplicateRequirement',