Skip to content

Commit

Permalink
fixed Undefined offset 3 on line 38 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Jan 18, 2018
1 parent 806d387 commit 354dbcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/cg/yaf_cg
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ $conf= array (
);


if($argv[3] == 'n'){
if($argc >= 4 && $argv[3] == 'n'){
define('INPUT_DIR', dirname(__FILE__).'/templatesNamespace');
}else{
define('INPUT_DIR', dirname(__FILE__).'/templates');
Expand Down

0 comments on commit 354dbcf

Please sign in to comment.