From c8e76fcb951b09075cc9104cc2046462f757dd61 Mon Sep 17 00:00:00 2001 From: Enrico Tassi Date: Thu, 22 Dec 2005 09:56:14 +0000 Subject: [PATCH] fix --- helm/matita/scripts/public_html/bench.php | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/helm/matita/scripts/public_html/bench.php b/helm/matita/scripts/public_html/bench.php index c1c241354..366b8dcb0 100644 --- a/helm/matita/scripts/public_html/bench.php +++ b/helm/matita/scripts/public_html/bench.php @@ -56,15 +56,18 @@ function minus1_to_all($s){ function links_of($name,$q,$limits){ echo "
  • $name :   "; - foreach($limits as $l) { - $q1 = str_replace(urlencode("***"), " LIMIT 0,$l", $q); - echo "" . - minus1_to_all($l) . "  "; + if (strpos($q, urlencode("***")) === false) { + echo "all"; + } else { + foreach($limits as $l) { + $q1 = str_replace(urlencode("***"), " LIMIT 0,$l", $q); + echo "" . + minus1_to_all($l) . "  "; + } + $q1 = str_replace(urlencode("***"), " LIMIT 0,-1", $q); + echo "" . + minus1_to_all("-1") . "  "; } - $q1 = str_replace(urlencode("***"), " LIMIT 0,-1", $q); - echo "" . - minus1_to_all("-1") . "  "; - echo "
  • "; } -- 2.39.2