![Picture of Tony Russo Picture of Tony Russo](/graphics/unknown.gif)
Tony Russo - 2015-07-01 18:30:02
In depcheck_class.php
At line 101:
$position = strpos($checkLine,($this->depFunction[$x]['function'].'('));
when a function is at the beginning of the $checkLine, the $position var will be 0. When $position -1 is used on line 103 it becomes -1 (invalid index)
To work around this just after line 101 added
$position = ( $position - 1 ) < 0 ? 1 : $position;
and this seemed to work.
Or you could modifiy line 103
Change:
if( preg_match("/[a-z_]/",$checkLine[$position-1]) ){
To :
if( preg_match("/[a-z_]/",$checkLine[$position]) ){