forked from friendica/php-json-ld
Fix typo.
This commit is contained in:
parent
5299404f62
commit
2ff57e973e
|
@ -743,7 +743,8 @@ class JsonLdProcessor {
|
||||||
* @return array all of the values for a subject's property as an array.
|
* @return array all of the values for a subject's property as an array.
|
||||||
*/
|
*/
|
||||||
public static function getValues($subject, $property) {
|
public static function getValues($subject, $property) {
|
||||||
$rval = $subject->{$property} ?: array();
|
$rval = (property_exists($subject, $property) ?
|
||||||
|
$subject->{$property} : array());
|
||||||
return self::arrayify($rval);
|
return self::arrayify($rval);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue