Changeset 691

Show
Ignore:
Timestamp:
2008-07-24 05:54:16 (7 weeks ago)
Author:
arthus
Message:

Fixed the PDO insert statement

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • plugins/lifestream/trunk/lifestream.plugin.php

    r683 r691  
    11<?php 
    22require 'idna_convert.php'; 
     3require 'simplepie.php'; 
    34 
    45class LifeStream extends Plugin 
     
    138139    public function insert( $entries = array() ) { 
    139140        foreach( $entries as $entry) { 
    140             $check= DB::get_results( "SELECT ID FROM " . DB::table( 'l_data' ) . " WHERE link= '" . $entry['link'] . '"' ); 
     141            $check= DB::get_results( "SELECT ID FROM " . DB::table( 'l_data' ) . ' WHERE link= "' . $entry['link'] . '"' ); 
    141142            if( !$check ) { 
    142143                DB::insert( DB::table( 'l_data' ), $entry );