We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ad7c106 + bfcc39e commit 2c3efbcCopy full SHA for 2c3efbc
src/Google/Spreadsheet/Sheet.php
@@ -64,7 +64,8 @@ public function select($condition = null){
64
return array_filter($this->items, function($item) use ($condition){
65
$invalid = 0;
66
foreach($condition as $key => $value){
67
- if($item[$key] !== $value){ $invalid ++; }
+ $v = array_key_exists($key, $item) ? $item[$key] : "";
68
+ if($v !== $value){ $invalid ++; }
69
}
70
return ! $invalid;
71
});
0 commit comments