index 6fa7c4b7d29ee49b5ac263acf3cb66057a68c99f..da6f6998b5eb57b4ec00ef393114e0adcfd71885 100644 (file)
function validToken($class, &$text, &$line)
{
+ global $requires_;
+
+ if(!is_array($requires_)){
+ $requires_ = array();
+ }
+
$name = $class . ($class != $text ? " $text" : '');
// Check if the command needs to be required
// TODO: move this to somewhere more appropriate
- global $requires_;
if (isset($this->s_['requires']) &&
!in_array('"'.$this->s_['requires'].'"', $requires_))
{