From 0aa9f6c05a5dbfab0dce08015b4b2962eff447c3 Mon Sep 17 00:00:00 2001 From: Kleis Auke Wolthuizen Date: Tue, 21 Nov 2017 17:48:03 +0100 Subject: [PATCH] Fix null pointer exception --- src/Endpoints/PageRules.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Endpoints/PageRules.php b/src/Endpoints/PageRules.php index bc0bea5..0ff3f33 100644 --- a/src/Endpoints/PageRules.php +++ b/src/Endpoints/PageRules.php @@ -115,7 +115,7 @@ class PageRules implements API ): bool { $options = []; - if ($active !== null) { + if ($target !== null) { $options['targets'] = $target->getArray(); }