Commit d7cd5840 authored by Jonathan.Wage's avatar Jonathan.Wage

--no commit message

--no commit message
parent d59dce86
......@@ -15,8 +15,6 @@ class Doctrine_Resource_Client extends Doctrine_Resource
public function newRecord($model)
{
$record = new Doctrine_Resource_Record($model, $this->config);
return $record;
return new Doctrine_Resource_Record($model, $this->config);
}
}
\ No newline at end of file
......@@ -24,7 +24,7 @@ class Doctrine_Resource_Collection extends Doctrine_Access implements Countable,
public function getFirst()
{
return $this->data[0];
return isset($this->data[0]) ? $this->data[0]:null;
}
public function toArray()
......
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