Skip to:
Content

BuddyPress.org

Ticket #2271: 2271.diff

File 2271.diff, 942 bytes (added by francescolaffi, 15 years ago)
  • bp-core/bp-core-classes.php

    # This patch file was generated by NetBeans IDE
    # Following Index: paths are relative to: /Users/Francesco/NetBeansProjects/bp-branch-1.2/1.2
    # This patch can be applied using context Tools: Patch action on respective folder.
    # It uses platform neutral UTF-8 encoding and \n newlines.
    # Above lines and this line are ignored by the patching process.
     
    136136                        $sql['where_popular'] = "AND um.meta_key = 'total_friend_count'";
    137137
    138138                if ( 'online' == $type )
    139                         $sql['where_online'] = "AND DATE_ADD( um.meta_value, INTERVAL 5 MINUTE ) >= NOW()";
    140  No newline at end of file
     139                        $sql['where_online'] = "AND DATE_ADD( um.meta_value, INTERVAL 5 MINUTE ) >= UTC_TIMESTAMP()";
     140 No newline at end of file
    141141
    142142                if ( 'alphabetical' == $type )