fix bug with info-visible
[plewww.git] / plekit / php / toggle.php
index d43cc78..b481195 100644 (file)
@@ -144,7 +144,7 @@ class PlekitToggle {
     $html="";
     $html .= "<div class='toggle-info'";
     $html .= " id='$div_id'";
-    if ($info_visible) $html .= " style='display:none'";
+    if (!$info_visible) $html .= " style='display:none'";
     $html .= ">";
     // tmp
     $html .= "<table class='center'><tr><td class='top'>";