File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ public function getDescription()
131131 */
132132 public function getAuthor ()
133133 {
134- return ( $ this ->meta [ ' creator ' ] ? $ this ->meta ['creator ' ] : null ) ;
134+ return array_key_exists ( ' creator ' , $ this ->meta ) ? $ this ->meta ['creator ' ] : null ;
135135 }
136136
137137 /**
@@ -205,7 +205,7 @@ public function getStructuredData()
205205 $ license = $ this ->getLicense ();
206206 $ type = $ this ->getSchemaOrgType ();
207207 $ user_data = ($ this ->getConf ('hideMail ' ) ? array ('mail ' => null ) : $ auth ->getUserData ($ this ->getAuthorID ()));
208- $ license_url = $ license ['url ' ];
208+ $ license_url = (( $ license !== null ) and array_key_exists ( ' url ' , $ license )) ? $ license ['url ' ] : null ;
209209 $ page_url = wl ($ this ->page , '' , true );
210210 $ description = str_replace ("\n" , ' ' , $ this ->getDescription ());
211211 $ created = date (DATE_W3C , $ this ->getCreatedDate ());
You can’t perform that action at this time.
0 commit comments