Commit dc2fb0a9 authored by Jorrit's avatar Jorrit Committed by RenatoG

Issue #2835969 by Jorrit, abarpetia, crutch, RenatoG: array_key_exists() warning message

parent a88e4826
......@@ -23,7 +23,7 @@ function print_pdf_settings() {
$link = print_pdf_print_link();
$current_pdf_tool = variable_get('print_pdf_pdf_tool', PRINT_PDF_PDF_TOOL_DEFAULT);
$pdf_tool_default = array_key_exists($current_pdf_tool, $pdf_tools) ? $current_pdf_tool : PRINT_PDF_PDF_TOOL_DEFAULT;
$pdf_tool_default = array_key_exists((string)$current_pdf_tool, $pdf_tools) ? $current_pdf_tool : PRINT_PDF_PDF_TOOL_DEFAULT;
$form['settings'] = array(
'#type' => 'fieldset',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment