소스 검색

Don't show errors for stuff we don't understand or care about.

pull/1/head
Shane Mc Cormack 12 년 전
부모
커밋
ae0f6b1d26
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 4
    2
      FileParser.php

+ 4
- 2
FileParser.php 파일 보기

@@ -22,7 +22,9 @@
22 22
 
23 23
     // Close braces
24 24
     if ($tline[0] == '}') {
25
-     call_user_func(array(&$this, 'parse_' . $block), $lines);
25
+     if (method_exists(&$this, 'parse_' . $block)) {
26
+      call_user_func(array(&$this, 'parse_' . $block), $lines);
27
+     }
26 28
      continue;
27 29
     }
28 30
 
@@ -39,6 +41,6 @@
39 41
 
40 42
    $this->analyse();
41 43
   }
42
- } 
44
+ }
43 45
 
44 46
 ?>

Loading…
취소
저장