From 8c84f764b9a85247812ff649437107871ecb6c28 Mon Sep 17 00:00:00 2001 From: Hosein Rezaei Date: Wed, 6 Mar 2019 06:33:49 +0330 Subject: [PATCH] A minor bug fixed It was producing a PHP warning about "Empty delimiter" --- phpQuery/phpQuery/phpQueryObject.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpQuery/phpQuery/phpQueryObject.php b/phpQuery/phpQuery/phpQueryObject.php index c421cdf..202f088 100644 --- a/phpQuery/phpQuery/phpQueryObject.php +++ b/phpQuery/phpQuery/phpQueryObject.php @@ -919,7 +919,7 @@ protected function pseudoClasses($class) { $text = trim($args, "\"'"); $stack = array(); foreach($this->elements as $node) { - if (mb_stripos($node->textContent, $text) === false) + if (($text) && (mb_stripos($node->textContent, $text) === false)) continue; $stack[] = $node; }