summaryrefslogtreecommitdiffstats
path: root/apps/workflowengine/lib/Check
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-02-13 21:48:24 +0100
committerMorris Jobke <hey@morrisjobke.de>2018-02-13 21:48:24 +0100
commit954da26e26a6f0011efa1432e9de4264e5f5e033 (patch)
tree4ec1aecaaf672bd8fc362f59261abbf1a1ea7bcf /apps/workflowengine/lib/Check
parent3fc6d6234e39914d8e6e7d4b9ffe0b5420d3aa2d (diff)
downloadnextcloud-server-954da26e26a6f0011efa1432e9de4264e5f5e033.tar.gz
nextcloud-server-954da26e26a6f0011efa1432e9de4264e5f5e033.zip
Use non aliased method instead
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/workflowengine/lib/Check')
-rw-r--r--apps/workflowengine/lib/Check/RequestRemoteAddress.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/workflowengine/lib/Check/RequestRemoteAddress.php b/apps/workflowengine/lib/Check/RequestRemoteAddress.php
index de9738fb631..6fa4cfc8800 100644
--- a/apps/workflowengine/lib/Check/RequestRemoteAddress.php
+++ b/apps/workflowengine/lib/Check/RequestRemoteAddress.php
@@ -83,7 +83,7 @@ class RequestRemoteAddress implements ICheck {
}
$decodedValue = explode('/', $value);
- if (sizeof($decodedValue) !== 2) {
+ if (count($decodedValue) !== 2) {
throw new \UnexpectedValueException($this->l->t('The given IP range is invalid'), 2);
}