private function _prepareValue($value) { if ($value != "") { // Replace spaces with %20 to send params correctly $value = str_replace(' ', '%20', $value); } // Check if the value is a boolean and set to correct type of string if ($this->helpers->is_bool($value)) { if ($value != "" && $value !== FALSE) { $value = 'TRUE'; } else { $value = 'FALSE'; } } return $value; }