original_string: public function write_setting($data) {
          global $CFG;
          if (!empty($CFG->preventexecpath)) {
              if ($this->get_setting() === null) {
                  // Use default during installation.
                  $data = $this->get_defaultsetting();
                  if ($data === null) {
                      $data = '';
                  }
              } else {
                  return '';
              }
          }
          return parent::write_setting($data);
      }
code: public function write_setting($data) {
          global $CFG;
          if (!empty($CFG->preventexecpath)) {
              if ($this->get_setting() === null) {
                  // Use default during installation.
                  $data = $this->get_defaultsetting();
                  if ($data === null) {
                      $data = '';
                  }
              } else {
                  return '';
              }
          }
          return parent::write_setting($data);
      }
code_tokens: public function write_setting ( $ data ) { global $ CFG ; if ( ! empty ( $ CFG -> preventexecpath ) ) { if ( $ this -> get_setting ( ) === null ) { // Use default during installation. $ data = $ this -> get_defaultsetting ( ) ; if ( $ data === null ) { $ data = '' ; } } else { return '' ; } } return parent :: write_setting ( $ data ) ; }
docstring: Checks if execpatch has been disabled in config.php
docstring_tokens: Checks if execpatch has been disabled in config . php