Skip to content

Commit

Permalink
Merge pull request #3409 from philsquare/2.2/streams-update-fix
Browse files Browse the repository at this point in the history
Perfect thanks!
  • Loading branch information
Ryan Thompson committed Aug 22, 2014
2 parents cf85a9f + 6a42bf1 commit a2ae845
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions system/cms/libraries/Streams/drivers/Streams_streams.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public function update_stream($stream, $namespace = null, $data = array())

if ( ! $str_id) $this->log_error('invalid_stream', 'update_stream');

$data['stream_slug'] = $stream;
$data['stream_slug'] = isset($data['stream_slug']) ? $data['stream_slug'] : $stream;

return $this->CI->streams_m->update_stream($str_id, $data);
}
Expand Down Expand Up @@ -279,4 +279,4 @@ public function validation_array($stream, $namespace = null, $method = 'new', $s

return $this->CI->fields->set_rules($stream_fields, $method, $skips, true, $row_id);
}
}
}

0 comments on commit a2ae845

Please sign in to comment.