Skip to content

Commit

Permalink
Merge pull request #1 from pb1uk/master
Browse files Browse the repository at this point in the history
Fix set index
  • Loading branch information
Luke Snowden committed Jul 6, 2015
2 parents 6984223 + e52b5ef commit 4218cd9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/LukeSnowden/GoogleShoppingFeed/Feed.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,9 @@ private function channel() {
public function createItem() {
$this->channel();
$item = new Item;
$this->items[] = $item;
$item->setIndex( count($this->items)-1 );
$index = 'index_' . md5( microtime() );
$this->items[$index] = $item;
$item->setIndex( $index );
return $item;
}

Expand Down

0 comments on commit 4218cd9

Please sign in to comment.