X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FWatchedItemQueryService.php;h=1fafb24dbe323bde5d8e22ba6af599691d184d17;hb=15cb57b3b5c5b665f4602baccfc320701b3ef6aa;hp=ba7707411a87f5f4f1fc970ff3587a4f07249e96;hpb=3a621c1a40b2ac6356aee994f5a5305d03e1f8d3;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/WatchedItemQueryService.php b/includes/WatchedItemQueryService.php index ba7707411a..1fafb24dbe 100644 --- a/includes/WatchedItemQueryService.php +++ b/includes/WatchedItemQueryService.php @@ -313,7 +313,7 @@ class WatchedItemQueryService { $allFields = get_object_vars( $row ); $rcKeys = array_filter( array_keys( $allFields ), - function( $key ) { + function ( $key ) { return substr( $key, 0, 3 ) === 'rc_'; } ); @@ -390,7 +390,7 @@ class WatchedItemQueryService { } if ( array_key_exists( 'rcTypes', $options ) ) { - $conds['rc_type'] = array_map( 'intval', $options['rcTypes'] ); + $conds['rc_type'] = array_map( 'intval', $options['rcTypes'] ); } $conds = array_merge( @@ -565,7 +565,7 @@ class WatchedItemQueryService { } if ( isset( $options['filter'] ) ) { $filter = $options['filter']; - if ( $filter === self::FILTER_CHANGED ) { + if ( $filter === self::FILTER_CHANGED ) { $conds[] = 'wl_notificationtimestamp IS NOT NULL'; } else { $conds[] = 'wl_notificationtimestamp IS NULL';