Skip to content
Permalink
Browse files

Fixing Undefined index: Session

  • Loading branch information...
phpnut committed Dec 29, 2015
1 parent a1e140c commit bc005cd014925ee0bc151994edc736c5c77a93a6
@@ -92,6 +92,10 @@ public function read($id) {
'conditions' => array($this->_model->alias . '.' . $this->_model->primaryKey => $id)
));
if(empty($row[$this->_model->alias])){
return '';
}
if (!is_numeric($row[$this->_model->alias]['data']) && empty($row[$this->_model->alias]['data'])) {
return '';
}
@@ -147,7 +147,6 @@ public function testRead() {
$this->storage->write('bar', 0);
$this->assertEquals(0, $this->storage->read('bar'));
$this->assertSame('', $this->storage->read('made up value'));
}
/**

0 comments on commit bc005cd

Please sign in to comment.
You can’t perform that action at this time.