diff options
Diffstat (limited to 'net/phpldapadmin/files/patch-lib_page.php')
-rw-r--r-- | net/phpldapadmin/files/patch-lib_page.php | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/net/phpldapadmin/files/patch-lib_page.php b/net/phpldapadmin/files/patch-lib_page.php new file mode 100644 index 000000000000..9d138b39b2f6 --- /dev/null +++ b/net/phpldapadmin/files/patch-lib_page.php @@ -0,0 +1,29 @@ +--- lib/page.php.orig 2021-12-12 02:35:51 UTC ++++ lib/page.php +@@ -184,7 +184,7 @@ class page { + $empty = true; + if (function_exists('cmd_control_pane')) + foreach (cmd_control_pane('main') as $cmddetails) +- if ((isset($cmddetails['enable']) && trim($cmddetails['enable'])) || ! isset($cmddetails['enable'])) { ++ if ((isset($cmddetails['enable']) && trim((string) $cmddetails['enable'])) || ! isset($cmddetails['enable'])) { + if (! $empty) + echo ' | '; + +@@ -358,7 +358,7 @@ class page { + + if (defined('DEBUG_ENABLED') && DEBUG_ENABLED) + debug_log('Sending COMPRESSED output to browser[(%s),%s]',129,0,__FILE__,__LINE__,__METHOD__, +- strlen($output),$output); ++ strlen((string) $output),$output); + + print gzencode($output); + } +@@ -445,7 +445,7 @@ class page { + + if (defined('DEBUG_ENABLED') && DEBUG_ENABLED) + debug_log('Sending COMPRESSED output to browser[(%s),%s]',129,0,__FILE__,__LINE__,__METHOD__, +- strlen($output),$output); ++ strlen((string) $output),$output); + + print gzencode($output); + } |