]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/blobdiff - Classes/class-plugin-git.php
Shut up some errors
[irc/unrealircd/unrealircd-webpanel.git] / Classes / class-plugin-git.php
index 04fa44ccbca27444ca90251ab031e61afe370f78..4bf9dabceda50d38e340d00dc33633a139fdc0b0 100644 (file)
@@ -10,6 +10,10 @@ class PluginRepo
     {
         global $config;
         if (!isset($config['third-party-plugins']))
+        {
+            $config['third-party-plugins'] = [];
+        }
+        if (empty($config['third-party-plugins']))
         {
             $config['third-party-plugins']['data'] = NULL;
             $config['third-party-plugins']['timestamp'] = 0;
@@ -81,10 +85,7 @@ class PluginRepo
 
             ?>
                <div class="row">
-            <?php     
-        $counter = 0;
-
-
+            <?php
         foreach($this->data->list as $p)
         {
             $tok = split(WEBPANEL_VERSION,"-");
@@ -136,18 +137,6 @@ class PluginRepo
                 </div>
             </div>
             <?php
-                /** only do three per row.
-                 *  WARNING: untested due to not having more than 2 plugins atm...
-                */
-                if ($counter >= 3)
-                {
-                    ?><!-- New row please mr html -->
-                        </div>
-                        <div class="row"> 
-                    <?php
-                    $counter = 0;
-                }
-                $counter++;
 
 
             }