Fix typo.

This commit is contained in:
Dave Longley 2012-08-15 15:39:55 -04:00
parent 5299404f62
commit 2ff57e973e
1 changed files with 2 additions and 1 deletions

View File

@ -743,7 +743,8 @@ class JsonLdProcessor {
* @return array all of the values for a subject's property as an array.
*/
public static function getValues($subject, $property) {
$rval = $subject->{$property} ?: array();
$rval = (property_exists($subject, $property) ?
$subject->{$property} : array());
return self::arrayify($rval);
}