Assembla home | Assembla project page
 

Changeset 246

Show
Ignore:
Timestamp:
04/15/08 01:21:05 (7 months ago)
Author:
Slynderdale
Message:

Fixed another bug in Seen when using search.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Phergie/Plugin/Seen.php

    r245 r246  
    8484                AND type NOT IN (:type, ' . Phergie_Plugin_Logging::MODE . ', ' . Phergie_Plugin_Logging::TOPIC . ') 
    8585                ORDER BY tstamp DESC 
    86                 LIMIT :offset,:limit 
     86                LIMIT 1,:limit 
    8787            '); 
    8888 
     
    183183            ':phrase' => '%' . str_replace(array('\\', '%'), array('\\\\', '\\%'), $phrase) . '%', 
    184184            ':limit' => ($source[0] == '#' ? 1 : 6), 
    185             ':type' => ($searchAll ? '0' : Phergie_Plugin_Logging::QUERY), 
    186             ':offset' => (strtolower($target) == strtolower($phrase) ? 1 : 0) 
     185            ':type' => ($searchAll ? '0' : Phergie_Plugin_Logging::QUERY) 
    187186        ); 
    188187