From b1ecb0649ecf868ba9ad973835e0d970cc7f2935 Mon Sep 17 00:00:00 2001 From: Peter Knut Date: Tue, 5 Nov 2024 15:56:57 +0100 Subject: [PATCH] Improve dumping methods if run from terminal --- adminer/include/debug.inc.php | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/adminer/include/debug.inc.php b/adminer/include/debug.inc.php index 15353b51..168f7b20 100644 --- a/adminer/include/debug.inc.php +++ b/adminer/include/debug.inc.php @@ -2,9 +2,19 @@ function dump($value) { - echo "
";
+	$cli = PHP_SAPI == 'cli';
+
+	if (!$cli)  {
+		echo "
";
+	}
+
 	var_export($value);
-	echo "
\n"; + + if (!$cli) { + echo "
"; + } + + echo "\n"; } function dumpe($value)