Skip to content

Commit 6cf5d61

Browse files
committed
Merge pull request #117 from lordlele/master
Update ERestJSONOutputWidget.php
2 parents 2171856 + e3bb632 commit 6cf5d61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

starship/RestfullYii/widgets/ERestJSONOutputWidget.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ public function processAttributes($model, $relation=null)
226226
if (!$this->propertyIsVisable($property, $relation)) {
227227
continue;
228228
}
229-
if($this->isBinary($schema->columns[$property]->dbType, $value)) {
229+
if(array_key_exists($property, $schema->columns) and $this->isBinary($schema->columns[$property]->dbType, $value)) {
230230
$value = bin2hex($value);
231231
}
232232
$model_as_array[$property] = $value;

0 commit comments

Comments
 (0)