Skip to content
This repository has been archived by the owner on Apr 26, 2020. It is now read-only.

Update phpQueryObject.php #26

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions phpQuery/phpQuery/phpQueryObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ public function get($index = null, $callback1 = null, $callback2 = null, $callba
* @todo maybe other name...
*/
public function getString($index = null, $callback1 = null, $callback2 = null, $callback3 = null) {
if ($index)
if ($index !== null)
$return = $this->eq($index)->text();
else {
$return = array();
Expand All @@ -529,7 +529,7 @@ public function getString($index = null, $callback1 = null, $callback2 = null, $
* @todo maybe other name...
*/
public function getStrings($index = null, $callback1 = null, $callback2 = null, $callback3 = null) {
if ($index)
if ($index !== null)
$return = $this->eq($index)->text();
else {
$return = array();
Expand Down