freebsd-ports/net/phpldapadmin/files/patch-lib_page.php
Krzysztof fee2b338d2
net/phpldapadmin: fix support for php81+
PR:	266678
Reported by:	Gerard Seibert
Approved by: rene (mentor)
Differential Revision: https://reviews.freebsd.org/D37513
2022-12-01 10:53:34 +01:00

29 lines
1 KiB
PHP

--- 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);
}