Commit 79641ca8 authored by Jens Segers's avatar Jens Segers

Use strpos instead of strstr

parent e3ff8801
......@@ -204,7 +204,7 @@ abstract class Model extends \Jenssegers\Eloquent\Model {
public function getAttribute($key)
{
// Check if the key is an array dot notation.
if (strstr($key, '.'))
if (strpos($key, '.') !== false)
{
$attributes = array_dot($this->attributes);
......@@ -230,7 +230,7 @@ abstract class Model extends \Jenssegers\Eloquent\Model {
return $this->attributes[$key];
}
else if (strstr($key, '.'))
else if (strpos($key, '.') !== false)
{
$attributes = array_dot($this->attributes);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment