summaryrefslogtreecommitdiff
path: root/net/phpldapadmin/files/patch-lib_page.php
blob: 9d138b39b2f6d07e6326bbebe645063c47ed5818 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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);
 		}