first of all Im completely new to PHP, never done it before.. zero skills with it.. but I got a task to solve some errors in my job but I dont know what to do with it..
I have error here
code:
<?$this->box->begin('rdgrey rdopen',null,'tree')?>
<?$this->box->headbegin();?>
    <span class="title"><?=lang('site_tree')?> </span>
<?$this->box->headend();?>
<?$this->box->contentbegin('');?>   
<?
  function pr(&$list,$key,&$c){
     echo '<ul class="tree">';
     $l=count(@$list[$key]);
     $i=0;
     if($l)
        foreach($list[$key] as $k=>$v){
            $has = count(@$c->content->config['has'][$v['type']]);
            echo '<li class="',($k==$l-1?'last ':''),(count(@$c->content->config['has'] 
         [$v['type']])?'folder ':'file ' ),
         (isset($list[$v['url']])?'open ':''),'type_',($v['type']),'"> 
         <span onClick="tree_tog(this)"></span><a href="',site_url('panel/'. 
         ($has?'index':'edit').'/'.$v['lang'].'/'.$v['nid'],null,false),'">
         ',character_limiter($v['name'],40),'</a>';
         if($v['type']!='root'&&isset($list[$v['url']]))
         pr($list,$v['url'],$c);
    
         echo '</li>';
         }
   //if($key)
   //echo '<li class="last"><a href="" onClick="return tognode(\'',$key,'\',this)">+</a></li>';
     echo '</ul>';
 }
  $lang = isset($_GET['lang']) ? $_GET['lang'] : @$node['lang'];
  pr($this->content->getTree(@$node['url'],$lang),'/',$this);
   ?>
   <?$this->box->contentend();?>   
   <?$this->box->end()?>
theres problem in this line
pr($this->content->getTree(@$node['url'],$lang),'/',$this);
It is saying that only variables should be passed by a reference.
Can somebody help me? How should I solve this?