Changeset 681 for plugins/lifestream/trunk/lifestream.plugin.php
- Timestamp:
- 07/18/08 14:05:29 (4 months ago)
- Files:
-
- 1 modified
-
plugins/lifestream/trunk/lifestream.plugin.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
plugins/lifestream/trunk/lifestream.plugin.php
r676 r681 135 135 } 136 136 137 public function insert($entries = array()) { 138 foreach($entries as $entry) { 139 DB::insert(DB::table('l_data'), $entry); 137 public function insert( $entries = array() ) { 138 foreach( $entries as $entry) { 139 $check= DB::get_results( "SELECT ID FROM " . DB::table( 'l_data' ) . " WHERE link= ". $entry['link'] ); 140 if( !$check ) { 141 DB::insert( DB::table( 'l_data' ), $entry ); 142 } 140 143 } 141 144 } … … 237 240 } 238 241 239 LifeStream::insert( $this->stream_contents);242 LifeStream::insert( $this->stream_contents ); 240 243 241 244 return $this->stream_contents;
