X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=profileinfo.php;h=dccdd38ff6a1ca01d8585b07936fa87053b41481;hp=c65f952ac2c31257d92a7e5c3f5010decb679b78;hb=8d02d1d2900fa196bd11841111b5b3a339f6dca4;hpb=3d98b80a3901a4f843af38066f4f1538ec635976 diff --git a/profileinfo.php b/profileinfo.php index c65f952ac2..dccdd38ff6 100644 --- a/profileinfo.php +++ b/profileinfo.php @@ -338,11 +338,7 @@ $res = $dbr->select( [ 'ORDER BY' => 'pf_name ASC' ] ); -if ( isset( $_REQUEST['filter'] ) ) { - $filter = $_REQUEST['filter']; -} else { - $filter = ''; -} +$filter = $_REQUEST['filter'] ?? ''; ?>
@@ -416,6 +412,7 @@ if ( isset( $_REQUEST['filter'] ) ) { $queries = []; $sqltotal = 0.0; + /** @var profile_point|false $last */ $last = false; foreach ( $res as $o ) { $next = new profile_point( $o->pf_name, $o->pf_count, $o->pf_time, $o->pf_memory ); @@ -439,7 +436,7 @@ if ( isset( $_REQUEST['filter'] ) ) { } } - $s = new profile_point( 'SQL Queries', 0, $sqltotal, 0, 0 ); + $s = new profile_point( 'SQL Queries', 0, $sqltotal, 0 ); foreach ( $queries as $q ) { $s->add_child( $q ); }