Changeset 124738 in spip-zone


Ignore:
Timestamp:
May 18, 2020, 2:26:12 PM (3 weeks ago)
Author:
JC Villeneuve
Message:

correction d'un bug d'affichage des stats pour spip 3.3

Location:
_squelettes_/escal/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _squelettes_/escal/trunk

    • Property subgit:lock:b02f03a22888e2131ba4647d7c8935a92b0b1fad deleted
    • Property subgit:lock:7e98198a539875d25f4b443fee6c39006b72fe58 set to 2020-05-18T16:28:23.854
  • _squelettes_/escal/trunk/escal_fonctions.php

    r124384 r124738  
    560560        $valmaxi = $rv['maxvi'];
    561561
    562         if($arg=="date") {
    563                 $qd = spip_query("SELECT date FROM spip_visites WHERE visites = $valmaxi");
    564                 $rd = mysqli_fetch_array($qd);
    565                 $jourmaxi = $rd['date'];
    566         }
    567         if($arg=="date") { $a = $jourmaxi; }
    568         if($arg=="val") { $a = $valmaxi; }
    569         return $a;
    570 }
     562
     563if ($valmaxi !=0) {
     564    if($arg=="date") {
     565        $qd = spip_query("SELECT date FROM spip_visites WHERE visites = $valmaxi");
     566        $rd = mysqli_fetch_array($qd);
     567        $jourmaxi = $rd['date'];
     568    }
     569    if($arg=="date") { $a = $jourmaxi; }
     570    if($arg=="val") { $a = $valmaxi; }
     571    return $a;
     572    }
     573 }
     574 
    571575function balise_JOUR_MAX_VISITES($p) {
    572576        $arg="'date'";
Note: See TracChangeset for help on using the changeset viewer.