We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3112
    • 11 Posts
    Not sure where it is coming from.

    this is my add processor:

    <?php
    if (empty($scriptProperties['name'])) {
        $modx->error->addField('name',$modx->lexicon('ccancel.ccancel_err_ns_name'));
    }
    
    if ($modx->error->hasError()) { return $modx->error->failure(); }
    
    $ccan = $modx->newObject('cancelClass');
    $ccan->fromArray($scriptProperties);
    if ($ccan->save() == false) {
        return $modx->error->failure($modx->lexicon('ccancel.ccancel_err_save'));
    }else{
      return $modx->error->success('',$ccan);
    }
    



    I could just remove it from the string, however I would like to know where it is coming from.