소스 검색

in sqgetGlobalVar, reset $value if it is not found.

Thijs Kinkhorst 20 년 전
부모
커밋
5146a1489d
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      functions/global.php

+ 3 - 1
functions/global.php

@@ -237,6 +237,8 @@ function sqgetGlobalVar($name, &$value, $search = SQ_INORDER) {
         }
         break;
     }
+    /* Nothing found, reset $value and return FALSE */
+    $value = null;
     return FALSE;
 }
 
@@ -287,4 +289,4 @@ function sqsession_is_active() {
 }
 
 // vim: et ts=4
-?>
+?>