Changeset 675
- Timestamp:
- 2008-07-15 13:51:43 (8 weeks ago)
- Files:
-
- 1 modified
-
plugins/lifestream/trunk/lifestream.plugin.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
plugins/lifestream/trunk/lifestream.plugin.php
r674 r675 145 145 $query.= 'SELECT * FROM ' . DB::table('l_data'); 146 146 147 if($type != 'any' ) {147 if($type != 'any' && $start == null && $end == null) { 148 148 $query.= " WHERE name= '$type'"; 149 149 } … … 151 151 if($start != null && $end != null) { 152 152 $query.= " WHERE date BETWEEN $start AND $end"; 153 } 153 if($type != 'any') { 154 $query.= " AND name= '$type'"; 155 } 156 } 157 158 Utils::debug($query); 154 159 155 160 $query.= ' ORDER BY date DESC';
