Plugin Directory

Changeset 217779


Ignore:
Timestamp:
03/15/2010 04:44:19 PM (16 years ago)
Author:
anukit
Message:

testing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cyclopress/branches/cp2/classes/cy_google_charts.php

    r217776 r217779  
    9191        // select the data we need from the database
    9292        $sql  = 'select * from '.$table_name;
    93         if ($chart->bike_id != NULL) { $sql .= ' where bike_id='.$wpdb->escape($chart->bike_id); }
     93        if ($chart->bike_id != NULL && $chart->bike_id != 0) { $sql .= ' where bike_id='.$wpdb->escape($chart->bike_id); }
    9494        $sql .= ' order by startdate asc';
    9595        $rides = $wpdb->get_results($sql, ARRAY_A);
Note: See TracChangeset for help on using the changeset viewer.