WordPress.org

Make WordPress Core

Ticket #39920: 39920.2.patch

File 39920.2.patch, 465 bytes (added by Dency, 4 years ago)

added Empty if-statement

  • misc.php

     
    7070        if (!file_exists( $filename ) ) {
    7171                return $result;
    7272        }
    73 
    74         if ( $markerdata = explode( "\n", implode( '', file( $filename ) ) ));
     73        $markerdata = explode( "\n", implode( '', file( $filename ) ) );
     74        if ( ! empty( $markerdata ) )
    7575        {
    7676                $state = false;
    7777                foreach ( $markerdata as $markerline ) {