Skip to content

Commit 2c3efbc

Browse files
authored
Merge pull request #8 from mach3/develop
fix bug
2 parents ad7c106 + bfcc39e commit 2c3efbc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Google/Spreadsheet/Sheet.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ public function select($condition = null){
6464
return array_filter($this->items, function($item) use ($condition){
6565
$invalid = 0;
6666
foreach($condition as $key => $value){
67-
if($item[$key] !== $value){ $invalid ++; }
67+
$v = array_key_exists($key, $item) ? $item[$key] : "";
68+
if($v !== $value){ $invalid ++; }
6869
}
6970
return ! $invalid;
7071
});

0 commit comments

Comments
 (0)