Skip to:
Content

BuddyPress.org

Changeset 9379


Ignore:
Timestamp:
01/19/2015 08:56:38 PM (10 years ago)
Author:
johnjamesjacoby
Message:

Move variable assignments inside conditional statements in bp-activity-classes.php. See #5891.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-activity/bp-activity-classes.php

    r9378 r9379  
    935935
    936936            $query = new BP_Activity_Query( $query_args );
    937             if ( $sql = $query->get_sql() ) {
     937            $sql   = $query->get_sql();
     938            if ( ! empty( $sql ) ) {
    938939                $retval['sql'] = $sql;
    939940            }
     
    22772278
    22782279            // Strip suffixes from ETag if they exist (eg. "-gzip")
    2279             if ( $etag_suffix_pos = strpos( $client_etag, '-' ) ) {
     2280            $etag_suffix_pos = strpos( $client_etag, '-' );
     2281            if ( ! empty( $etag_suffix_pos ) ) {
    22802282                $client_etag = substr( $client_etag, 0, $etag_suffix_pos );
    22812283            }
Note: See TracChangeset for help on using the changeset viewer.