We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3ff880 commit 79641caCopy full SHA for 79641ca
src/Jenssegers/Mongodb/Model.php
@@ -204,7 +204,7 @@ public function getTable()
204
public function getAttribute($key)
205
{
206
// Check if the key is an array dot notation.
207
- if (strstr($key, '.'))
+ if (strpos($key, '.') !== false)
208
209
$attributes = array_dot($this->attributes);
210
@@ -230,7 +230,7 @@ protected function getAttributeFromArray($key)
230
return $this->attributes[$key];
231
}
232
233
- else if (strstr($key, '.'))
+ else if (strpos($key, '.') !== false)
234
235
236
0 commit comments