fixed index not found error in read()

master
Garrett Mills 8 years ago
parent 3528ac6f24
commit b477184692

@ -19,7 +19,12 @@ class Meta extends Model
function read( $key ){
$meta = unserialize( $this->meta );
return $meta[ $key ];
if ( array_key_exists( $key, $meta ) ){
return $meta[ $key ];
}
else {
return null;
}
}
function write( $key, $value ){

Loading…
Cancel
Save