From 2c86699242e832d50de6cd443d0ec7509cdce8b3 Mon Sep 17 00:00:00 2001 From: overclokk Date: Mon, 3 Dec 2018 13:38:18 +0100 Subject: [PATCH] Fixed undefined variable --- src/Debug/Debug.php | 8 ++++---- src/debug.php | 20 ++++++++++---------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/Debug/Debug.php b/src/Debug/Debug.php index 5a57731..d83ed80 100644 --- a/src/Debug/Debug.php +++ b/src/Debug/Debug.php @@ -66,10 +66,10 @@ public static function log( $log ) { public static function d( $log ) { echo "
";
-		print_r( $value );
+		print_r( $log );
 		echo "
"; - self::log( $value ); + self::log( $log ); } /** @@ -81,10 +81,10 @@ public static function d( $log ) { public static function ddd( $log ) { echo "
";
-		print_r( $value );
+		print_r( $log );
 		echo "
"; - self::log( $value ); + self::log( $log ); die(); } diff --git a/src/debug.php b/src/debug.php index 0b930fe..ffd3c36 100644 --- a/src/debug.php +++ b/src/debug.php @@ -42,14 +42,14 @@ function debug( $log ) { } } -if ( ! function_exists( 'd' ) ) { - function d( $log ) { - Debug::d( $log ); - } -} +// if ( ! function_exists( 'd' ) ) { +// function d( $log ) { +// Debug::d( $log ); +// } +// } -if ( ! function_exists( 'ddd' ) ) { - function ddd( $log ) { - Debug::ddd( $log ); - } -} +// if ( ! function_exists( 'ddd' ) ) { +// function ddd( $log ) { +// Debug::ddd( $log ); +// } +// }