瀏覽代碼

DBG fix warning for reqKey = true

Piotr Labudda 10 年之前
父節點
當前提交
4cd99c7684
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      SE/se-lib/DBG.php

+ 1 - 1
SE/se-lib/DBG.php

@@ -19,7 +19,7 @@ class DBG {
 	 */
 	public static function _($reqKey, $reqValueExpr, $label, $variable, $className, $functionName, $lineNumber, $borderColor = 'red') {
 		$showDBG = false;
-		$reqValue = V::get($reqKey, '', $_GET);
+		$reqValue = (true === $reqKey || !$reqKey)? '' : V::get($reqKey, '', $_GET);
 		if (true === $reqKey) {
 			$showDBG = true;
 		}