Don't mix data model and UI: use template to display debug log
[gitphp.git] / include / DebugLog.class.php
blob:a/include/DebugLog.class.php -> blob:b/include/DebugLog.class.php
--- a/include/DebugLog.class.php
+++ b/include/DebugLog.class.php
@@ -236,8 +236,8 @@
 			return;
 
 		$msg = $args[0];
-		$msg_data = isset($args[1]) ? $args[1] : '';
-		$type = isset($args[2]) ? $args[2] : 'ts';
+		$msg_data = !empty($args[1]) ? $args[1] : '';
+		$type = !empty($args[2]) ? $args[2] : 'ts';
 
 		$this->Log($msg, $msg_data, $type);
 	}

comments