Fix null pointer exception
This commit is contained in:
@@ -115,7 +115,7 @@ class PageRules implements API
|
|||||||
): bool {
|
): bool {
|
||||||
$options = [];
|
$options = [];
|
||||||
|
|
||||||
if ($active !== null) {
|
if ($target !== null) {
|
||||||
$options['targets'] = $target->getArray();
|
$options['targets'] = $target->getArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user