Plugin Directory

Changeset 436694


Ignore:
Timestamp:
09/12/2011 08:07:45 AM (15 years ago)
Author:
bhoogterp
Message:

Update

Location:
scripture-cloud
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • scripture-cloud/tags/1.0.0/scripturecloud_show.php

    r436688 r436694  
    9090    $min = min(array_values($refs));  // usually 1, the way it goes...
    9191
    92     if (!$max || !($max - $min)) return "";  // div by zero stuff..
    93 
    9492    $s .= "<div class='wrap'>\n";
    9593    foreach($refs as $a=>$b)
     
    9896        if ($imax!=0 && $b>$imax) continue;
    9997
    100         $z = ($b - $min) / ($max - $min) * ($largest - $smallest) + $smallest;
     98        if ($max == $min)
     99            $z = $largest;
     100        else
     101            $z = ($b - $min) / ($max - $min) * ($largest - $smallest) + $smallest;
    101102
    102103        $s .= "<span style='font:normal {$z}px/10px Tahoma' title='$b topics'> ";
  • scripture-cloud/trunk/scripturecloud_show.php

    r436688 r436694  
    9090    $min = min(array_values($refs));  // usually 1, the way it goes...
    9191
    92     if (!$max || !($max - $min)) return "";  // div by zero stuff..
    93 
    9492    $s .= "<div class='wrap'>\n";
    9593    foreach($refs as $a=>$b)
     
    9896        if ($imax!=0 && $b>$imax) continue;
    9997
    100         $z = ($b - $min) / ($max - $min) * ($largest - $smallest) + $smallest;
     98        if ($max == $min)
     99            $z = $largest;
     100        else
     101            $z = ($b - $min) / ($max - $min) * ($largest - $smallest) + $smallest;
    101102
    102103        $s .= "<span style='font:normal {$z}px/10px Tahoma' title='$b topics'> ";
Note: See TracChangeset for help on using the changeset viewer.