Fix null pointer exception

This commit is contained in:
Kleis Auke Wolthuizen
2017-11-21 17:48:03 +01:00
parent a09478eb2f
commit 0aa9f6c05a

View File

@@ -115,7 +115,7 @@ class PageRules implements API
): bool {
$options = [];
if ($active !== null) {
if ($target !== null) {
$options['targets'] = $target->getArray();
}