if ( $this->userCanExecute( $this->getUser() ) ) {
$func = $this->mFunction;
// only load file if the function does not exist
- if(!is_callable($func) and $this->mFile) {
+ if( !is_callable($func) && $this->mFile ) {
require_once( $this->mFile );
}
$this->outputHeader();
$result->setIndexedTagName( $retval['helpurls'], 'helpurl' );
$retval['allexamples'] = $examples;
+ if ( isset( $retval['allexamples'][0] ) && $retval['allexamples'][0] === false ) {
+ $retval['allexamples'] = array();
+ }
$result->setIndexedTagName( $retval['allexamples'], 'example' );
$retval['parameters'] = array();