Help with error message


  • Default avatar
    chill_e_g    
     10 years ago
    0

    Hi Guys, how do I correct this?

    Strict Standards: Only variables should be passed by reference in /usr/www/users/********/test.scrapbookstudio.co.za/plugins/system/awocouponEmail/awocouponEmail.php on line 53
  • Your avatar
    seyi    
     10 years ago
    0

    Hello,

    On line 53 is this
    <?php
            $fname 
    array_pop(JFolder::files(JPATH_SITE.'/media',$this->time_file.'.*'));
    ?>


    Try changing it to this:
    <?php
            $files 
    JFolder::files(JPATH_SITE.'/media',$this->time_file.'.*');
            
    $fname array_pop($files);
    ?>