Commit 195cc07c authored by Seth Hendrick's avatar Seth Hendrick Committed by Tamás Pintér
Browse files

Issue #3214591 by ponies, stedmanj, percoction: Notice: Trying to access array...

Issue #3214591 by ponies, stedmanj, percoction: Notice: Trying to access array offset on value of type bool with PHP 7.4
parent fa55b93d
Loading
Loading
Loading
Loading
+6 −1
Changes for webform2pdf.module: 6 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -15,7 +15,12 @@ function webform2pdf_enabled_pdf_access() {
    ->execute()
    ->fetchAssoc();

  return ($row['enabled'] && call_user_func_array($call, $param));
  return ($row !== false
	  && is_array($row)
	  && isset($row['enabled'])
	  && $row['enabled']
	  && call_user_func_array($call, $param));

} // function webform2pdf_enabled_pdf_access()

/**