We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9995
    • 1,613 Posts
    I have installed TeMailer on Evo 1.0.5 and getting a error.

    Function split() is deprecated on lines:
    list ($id1, $fld) = split('[|]', $id);
    
    list ($this->ord, $this->desc) = split('[,]', $this->ordstr);


    Anyone knows how to fix this?
      Evolution user, I like the back-end speed and simplicity smiley
      • 16278
      • 928 Posts
      If using a regular expression for the split point, you need to use preg_split() instead of split().
      Here, however, the split specifiers seem to be regular expressions listing just one character, so you can use plain old explode()
      list ($id1, $fld) = explode('|', $id);
       
      list ($this->ord, $this->desc) = explode(',', $this->ordstr);


      ;) KP
        • 9995
        • 1,613 Posts
        no more error, thanks! laugh
          Evolution user, I like the back-end speed and simplicity smiley